Bot Emojis Resource¶
Note
The following classes come from the scurrypy.resources.bot_emoji module.
BotEmoji
dataclass
¶
Bases: BaseResource
Represents a Discord Bot Emoji.
application_id: int
instance-attribute
¶
Application ID of the emojis.
context: Any
instance-attribute
¶
Associated user data.
fetch
async
¶
Fetch an emoji from the bot repository.
Parameters:
-
emoji_id(int) –emoji ID
Returns:
-
EmojiModel–queried emoji
fetch_all
async
¶
create
async
¶
Add an emoji to the bot emoji repository.
Parameters:
-
emoji(BotEmojiPart) –bot emoji fields
Returns:
-
EmojiModel–new emoji
edit
async
¶
Edit an emoji in the bot repository.
Parameters:
-
emoji_id(int) –ID of the emoji
-
options(EditBotEmojiParams, default:{}) –fields to edit the emoji
Returns:
-
EmojiModel–updated emoji
delete
async
¶
Deletes an emoji from the bot repository.
Parameters:
-
emoji_id(int) –ID of the emoji to remove