Resources¶
emoji
¶
ApplicationEmoji
dataclass
¶
Bases: BaseResource
flowchart TD
scurrypy.resources.emoji.ApplicationEmoji[ApplicationEmoji]
scurrypy.resources.base_resource.BaseResource[BaseResource]
scurrypy.resources.base_resource.BaseResource --> scurrypy.resources.emoji.ApplicationEmoji
click scurrypy.resources.emoji.ApplicationEmoji href "" "scurrypy.resources.emoji.ApplicationEmoji"
click scurrypy.resources.base_resource.BaseResource href "" "scurrypy.resources.base_resource.BaseResource"
Represents a Discord Bot Emoji.
application_id: Snowflake
instance-attribute
¶
Application ID of the emojis.
fetch
async
¶
Fetch an emoji from the bot repository.
Parameters:
-
emoji_id(Snowflake) –emoji ID
Returns:
-
EmojiModel–queried emoji
fetch_all
async
¶
create
async
¶
Add an emoji to the bot emoji repository.
Parameters:
-
emoji(ApplicationEmojiPart) –bot emoji fields
Returns:
-
EmojiModel–new emoji
edit
async
¶
Edit an emoji in the bot repository.
Parameters:
-
emoji_id(Snowflake) –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
GuildEmoji
dataclass
¶
Bases: BaseResource
flowchart TD
scurrypy.resources.emoji.GuildEmoji[GuildEmoji]
scurrypy.resources.base_resource.BaseResource[BaseResource]
scurrypy.resources.base_resource.BaseResource --> scurrypy.resources.emoji.GuildEmoji
click scurrypy.resources.emoji.GuildEmoji href "" "scurrypy.resources.emoji.GuildEmoji"
click scurrypy.resources.base_resource.BaseResource href "" "scurrypy.resources.base_resource.BaseResource"
Represents a Discord Guild Emoji.
guild_id: Snowflake
instance-attribute
¶
Guild ID of the emojis.
fetch
async
¶
Fetch an emoji from this guild.
Parameters:
-
emoji_id(Snowflake) –emoji ID
Returns:
-
EmojiModel–queried guild emoji
fetch_all
async
¶
create
async
¶
Create a new emoji for this guild.
Fires GuildEmojisUpdateEvent.
Parameters:
-
emoji(GuildEmojiPart) –fields for creating a guild emoji
Returns:
-
EmojiModel–new emoji
edit
async
¶
Edit a guild emoji in this guild.
Fires GuildEmojisUpdateEvent.
Parameters:
-
emoji_id(Snowflake) –ID of the emoji to edit
-
options(EditGuildEmojiParams, default:{}) –params for editing a guild's emoji
Returns:
-
EmojiModel–updated emoji
delete
async
¶
Delete an emoji from this guild.
Fires GuildEmojisUpdateEvent.
Permissions
CREATE_GUILD_EXPRESSIONS→ required if created by the current user (orMANAGE_GUILD_EXPRESSIONS)MANAGE_GUILD_EXPRESSIONS→ required for other emojis
Parameters:
-
emoji_id(Snowflake) –ID of the emoji