aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar thegamecracks <[email protected]>2022-11-10 11:16:38 -0500
committerGravatar thegamecracks <[email protected]>2022-11-10 11:58:06 -0500
commitcbbd444c4b86f43b5cb1fdfbd1c467f5e167987c (patch)
tree8437adb8bf867de97c60eebf9057d56bf844c5a4
parentMerge pull request #2307 from python-discord/2306-nominations-cleanup (diff)
Change discord.py links in tags to use stable version
The `latest` version of docs follows discord.py's development branch, which may include changes to documentation that are not relevant/accessible to typical users of the library.
-rw-r--r--bot/resources/tags/customcooldown.md2
-rw-r--r--bot/resources/tags/intents.md2
-rw-r--r--bot/resources/tags/local-file.md6
3 files changed, 5 insertions, 5 deletions
diff --git a/bot/resources/tags/customcooldown.md b/bot/resources/tags/customcooldown.md
index ac7e70aee..fcff46028 100644
--- a/bot/resources/tags/customcooldown.md
+++ b/bot/resources/tags/customcooldown.md
@@ -17,4 +17,4 @@ async def on_message(message):
await message.channel.send("Not ratelimited!")
```
-`from_cooldown` takes the amount of `update_rate_limit()`s needed to trigger the cooldown, the time in which the cooldown is triggered, and a [`BucketType`](https://discordpy.readthedocs.io/en/latest/ext/commands/api.html#discord.discord.ext.commands.BucketType).
+`from_cooldown` takes the amount of `update_rate_limit()`s needed to trigger the cooldown, the time in which the cooldown is triggered, and a [`BucketType`](https://discordpy.readthedocs.io/en/stable/ext/commands/api.html#discord.discord.ext.commands.BucketType).
diff --git a/bot/resources/tags/intents.md b/bot/resources/tags/intents.md
index aa49d59ae..f91f52194 100644
--- a/bot/resources/tags/intents.md
+++ b/bot/resources/tags/intents.md
@@ -16,4 +16,4 @@ intents.members = True
bot = commands.Bot(command_prefix="!", intents=intents)
```
-For more info about using intents, see the [discord.py docs on intents](https://discordpy.readthedocs.io/en/latest/intents.html), and for general information about them, see the [Discord developer documentation on intents](https://discord.com/developers/docs/topics/gateway#gateway-intents).
+For more info about using intents, see the [discord.py docs on intents](https://discordpy.readthedocs.io/en/stable/intents.html), and for general information about them, see the [Discord developer documentation on intents](https://discord.com/developers/docs/topics/gateway#gateway-intents).
diff --git a/bot/resources/tags/local-file.md b/bot/resources/tags/local-file.md
index ae41d589c..4a80e87e3 100644
--- a/bot/resources/tags/local-file.md
+++ b/bot/resources/tags/local-file.md
@@ -1,4 +1,4 @@
-Thanks to discord.py, sending local files as embed images is simple. You have to create an instance of [`discord.File`](https://discordpy.readthedocs.io/en/latest/api.html#discord.File) class:
+Thanks to discord.py, sending local files as embed images is simple. You have to create an instance of [`discord.File`](https://discordpy.readthedocs.io/en/stable/api.html#discord.File) class:
```py
# When you know the file exact path, you can pass it.
file = discord.File("/this/is/path/to/my/file.png", filename="file.png")
@@ -10,7 +10,7 @@ with open("/this/is/path/to/my/file.png", "rb") as f:
When using the file-like object, you have to open it in `rb` mode. Also, in this case, passing `filename` to it is not necessary.
Please note that `filename` can't contain underscores. This is a Discord limitation.
-[`discord.Embed`](https://discordpy.readthedocs.io/en/latest/api.html#discord.Embed) instances have a [`set_image`](https://discordpy.readthedocs.io/en/latest/api.html#discord.Embed.set_image) method which can be used to set an attachment as an image:
+[`discord.Embed`](https://discordpy.readthedocs.io/en/stable/api.html#discord.Embed) instances have a [`set_image`](https://discordpy.readthedocs.io/en/stable/api.html#discord.Embed.set_image) method which can be used to set an attachment as an image:
```py
embed = discord.Embed()
# Set other fields
@@ -20,4 +20,4 @@ After this, you can send an embed with an attachment to Discord:
```py
await channel.send(file=file, embed=embed)
```
-This example uses [`discord.TextChannel`](https://discordpy.readthedocs.io/en/latest/api.html#discord.TextChannel) for sending, but any instance of [`discord.abc.Messageable`](https://discordpy.readthedocs.io/en/latest/api.html#discord.abc.Messageable) can be used for sending.
+This example uses [`discord.TextChannel`](https://discordpy.readthedocs.io/en/stable/api.html#discord.TextChannel) for sending, but any instance of [`discord.abc.Messageable`](https://discordpy.readthedocs.io/en/stable/api.html#discord.abc.Messageable) can be used for sending.