diff options
| author | 2021-02-06 18:19:40 +0200 | |
|---|---|---|
| committer | 2021-02-06 18:19:40 +0200 | |
| commit | 65ea1657de016a3ba1e58412950ae4bf735bf0fe (patch) | |
| tree | 80811bf32df84c5cbec58815ccbf12516cf7eea3 | |
| parent | Add back removed 'can' to local-file tag (diff) | |
Add missing 'a' article in local-file tag
| -rw-r--r-- | bot/resources/tags/local-file.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/resources/tags/local-file.md b/bot/resources/tags/local-file.md index a4aeee736..29fce3ff5 100644 --- a/bot/resources/tags/local-file.md +++ b/bot/resources/tags/local-file.md @@ -8,7 +8,7 @@ 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. -Please note that `filename` can't contain underscores. This is Discord limitation. +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: ```py |