Skip to content

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:

Returns:

fetch_all async

Fetch all emojis from the bot repository.

Returns:

create async

Add an emoji to the bot emoji repository.

Parameters:

Returns:

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:

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:

Returns:

fetch_all async

Fetch all emojis from this guild.

Returns:

  • list[EmojiModel]

    queried list of guild emojis

create async

Create a new emoji for this guild. Fires GuildEmojisUpdateEvent.

Parameters:

Returns:

edit async

Edit a guild emoji in this guild. Fires GuildEmojisUpdateEvent.

Parameters:

Returns:

delete async

Delete an emoji from this guild. Fires GuildEmojisUpdateEvent.

Permissions

  • CREATE_GUILD_EXPRESSIONS → required if created by the current user (or MANAGE_GUILD_EXPRESSIONS)
  • MANAGE_GUILD_EXPRESSIONS → required for other emojis

Parameters: