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 resource.
application_id: Snowflake
instance-attribute
¶
Application ID of the emojis.
fetch
async
¶
fetch_all
async
¶
create
async
¶
Add an emoji to the bot emoji repository.
Parameters:
-
emoji(ApplicationEmojiPart) –bot emoji fields
Returns:
-
JsonQuery–new emoji
edit
async
¶
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_all
async
¶
create
async
¶
Create a new emoji for this guild. Fires Guild Emojis Update.
Parameters:
-
emoji(GuildEmojiPart) –fields for creating a guild emoji
Returns:
-
JsonQuery–new emoji
edit
async
¶
Edit a guild emoji in this guild. Fires Guild Emojis Update.
Parameters:
-
emoji_id(Snowflake) –ID of the emoji to edit
-
options(EditGuildEmojiParams) –fields to edit
Returns:
-
JsonQuery–updated emoji
delete
async
¶
Delete an emoji from this guild. Fires Guild Emojis Update.
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