aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar wookie184 <[email protected]>2022-11-10 18:01:38 +0000
committerGravatar GitHub <[email protected]>2022-11-10 18:01:38 +0000
commit7244f4b86aae6280deb725d095431c6cb0015ffa (patch)
treeefe6e8fc3ea44e8a97e28925c1f231d23efeaffc
parentMerge pull request #2307 from python-discord/2306-nominations-cleanup (diff)
parentFix reference link in customcooldown.md (diff)
Merge pull request #2321 from thegamecracks/discordpy-stable-docs
Update discord.py tags to refer to the stable version of the documentation
-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..65935952b 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.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.