Objects¶
emoji
¶
EmojiPart
dataclass
¶
Bases: Part
flowchart TD
scurrypy.api.emoji.EmojiPart[EmojiPart]
scurrypy.core.part.Part[Part]
scurrypy.core.part.Part --> scurrypy.api.emoji.EmojiPart
click scurrypy.api.emoji.EmojiPart href "" "scurrypy.api.emoji.EmojiPart"
click scurrypy.core.part.Part href "" "scurrypy.core.part.Part"
Represents a Discord emoji.
name: RequiredNullablePartField[str] = None
class-attribute
instance-attribute
¶
Name of emoji.
id: OptionalPartField[Snowflake] = None
class-attribute
instance-attribute
¶
ID of the emoji (if custom).
animated: OptionalPartField[bool] = None
class-attribute
instance-attribute
¶
If the emoji is animated.
api_code: str | None
property
¶
API code for this emoji (URL-safe).
ApplicationEmojiPart
dataclass
¶
Bases: Part
flowchart TD
scurrypy.api.emoji.ApplicationEmojiPart[ApplicationEmojiPart]
scurrypy.core.part.Part[Part]
scurrypy.core.part.Part --> scurrypy.api.emoji.ApplicationEmojiPart
click scurrypy.api.emoji.ApplicationEmojiPart href "" "scurrypy.api.emoji.ApplicationEmojiPart"
click scurrypy.core.part.Part href "" "scurrypy.core.part.Part"
Represents fields for creating a bot emoji.
GuildEmojiPart
dataclass
¶
Bases: Part
flowchart TD
scurrypy.api.emoji.GuildEmojiPart[GuildEmojiPart]
scurrypy.core.part.Part[Part]
scurrypy.core.part.Part --> scurrypy.api.emoji.GuildEmojiPart
click scurrypy.api.emoji.GuildEmojiPart href "" "scurrypy.api.emoji.GuildEmojiPart"
click scurrypy.core.part.Part href "" "scurrypy.core.part.Part"
Represents fields for creating a guild emoji.
name: RequiredPartField[str] = None
class-attribute
instance-attribute
¶
Name of the emoji.
image: RequiredPartField[ImageDataPart] = None
class-attribute
instance-attribute
¶
Image data for the icon of the emoji.
roles: RequiredPartField[list[Snowflake]] = None
class-attribute
instance-attribute
¶
Roles able to use the emoji.