aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2021-02-06 22:04:10 +0200
committerGravatar GitHub <[email protected]>2021-02-06 22:04:10 +0200
commitfc451e1b3c375a73b000cea21f822b7f95d900d7 (patch)
treeef2eef4205c06e9eca7576403f77068824cc127c
parentRemove unnecessary period from local-file tag (diff)
Put filename between backticks
-rw-r--r--bot/resources/tags/local-file.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/resources/tags/local-file.md b/bot/resources/tags/local-file.md
index fdce5605c..ae41d589c 100644
--- a/bot/resources/tags/local-file.md
+++ b/bot/resources/tags/local-file.md
@@ -7,7 +7,7 @@ file = discord.File("/this/is/path/to/my/file.png", filename="file.png")
with open("/this/is/path/to/my/file.png", "rb") as f:
file = discord.File(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.
+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: