Bot Emojis Resource¶
Note
The following classes come from the discord.resources.bot_emojis
module.
BotEmojis
¶
Represents a collection of the bot's emojis.
application_id = application_id
instance-attribute
¶
Bot's application ID.
fetch_all
async
¶
Fetches all the bot's emojis from its repository.
fetch
async
¶
Fetches a single emoji from the bot's repository.
Parameters:
-
emoji_id
(int
) –the emoji's id
Returns:
-
EmojiModel
–the new EmojiModel object with all fields populated
get_emoji
¶
Get an emoji from this resource's cache by name.
Parameters:
-
name
(str
) –name of the emoji
Returns:
-
EmojiModel
–the new EmojiModel object with all fields populated