aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2021-02-06 18:07:07 +0200
committerGravatar GitHub <[email protected]>2021-02-06 18:07:07 +0200
commit8f51f239f2ded1d7176a94039d2332ef74532a95 (patch)
treebab4c60d1af184f647f2ed1ee16195c787a38045
parentAdd hyperlinks for local file tag discord.py references (diff)
Fix grammar of local-file tag
-rw-r--r--bot/resources/tags/local-file.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/resources/tags/local-file.md b/bot/resources/tags/local-file.md
index 344f35667..52539c64e 100644
--- a/bot/resources/tags/local-file.md
+++ b/bot/resources/tags/local-file.md
@@ -10,13 +10,13 @@ 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 Discord limitation.
-[`discord.Embed`](https://discordpy.readthedocs.io/en/latest/api.html#discord.Embed) instance has method [`set_image`](https://discordpy.readthedocs.io/en/latest/api.html#discord.Embed.set_image) what can be used to set attachment as image:
+[`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:
```py
embed = discord.Embed()
# Set other fields
embed.set_image(url="attachment://file.png") # Filename here must be exactly same as attachment filename.
```
-After this, you can send embed and attachment to Discord:
+After this, you send an embed with an attachment to Discord:
```py
await channel.send(file=file, embed=embed)
```