diff options
| author | Vexs <[email protected]> | 2019-04-17 18:29:54 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-04-17 22:42:00 -0400 |
| commit | f38b199d6ab62bae73c524ae26cfb68a9dac3ac3 (patch) | |
| tree | dc4056a3107d3c2d35e0f84e9e8d70b14149cd24 /docs | |
| parent | add read-only cached_messages property to Client (diff) | |
| download | discord.py-f38b199d6ab62bae73c524ae26cfb68a9dac3ac3.tar.xz discord.py-f38b199d6ab62bae73c524ae26cfb68a9dac3ac3.zip | |
Add support for <:name:id> format for adding reactions
Adjust FAQ to match.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/faq.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/faq.rst b/docs/faq.rst index 95f7a26b..42d9116f 100644 --- a/docs/faq.rst +++ b/docs/faq.rst @@ -164,7 +164,7 @@ Quick example: :: In case you want to use emoji that come from a message, you already get their code points in the content without needing to do anything special. You **cannot** send ``':thumbsup:'`` style shorthands. -For custom emoji, you should pass an instance of :class:`Emoji`. You can also pass a ``'name:id'`` string, but if you +For custom emoji, you should pass an instance of :class:`Emoji`. You can also pass a ``'<:name:id>'`` string, but if you can use said emoji, you should be able to use :meth:`Client.get_emoji` to get an emoji via ID or use :func:`utils.find`/ :func:`utils.get` on :attr:`Client.emojis` or :attr:`Guild.emojis` collections. @@ -184,7 +184,7 @@ Quick example: :: await message.add_reaction(emoji) # if you have the name and ID of a custom emoji: - emoji = 'python3:232720527448342530' + emoji = '<:python3:232720527448342530>' await message.add_reaction(emoji) How do I pass a coroutine to the player's "after" function? |