aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar thegamecracks <[email protected]>2022-11-12 14:57:49 -0500
committerGravatar GitHub <[email protected]>2022-11-12 14:57:49 -0500
commit330a063721b2b9f19223ce739200b61689292a89 (patch)
tree9ece9a0616e2971e591831fadafec34f37f9718b
parentAdd further clarification to intents.md (diff)
parentMerge pull request #2321 from thegamecracks/discordpy-stable-docs (diff)
Merge branch 'main' into intents-tag
-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 99f14f931..9e3ed560b 100644
--- a/bot/resources/tags/intents.md
+++ b/bot/resources/tags/intents.md
@@ -16,4 +16,4 @@ intents.message_content = True
bot = commands.Bot(command_prefix="!", intents=intents)
```
-For more info about using intents, see [discord.py's related guide](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 [discord.py's related guide](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.