curious.dataclasses.emoji
Wrappers for custom emojis in guilds.
Classes
Emoji(**kwargs) |
Represents a custom emoji uploaded to a guild. |
-
class
curious.dataclasses.emoji.Emoji(**kwargs)[source]
Bases: curious.dataclasses.bases.Dataclass
Represents a custom emoji uploaded to a guild.
Inspects the stack to ensure we’re being called correctly.
-
await
delete()[source]
Deletes this emoji.
-
await
edit(*, name=None, roles=None)[source]
Edits this emoji.
| Parameters: |
|
| Return type: | Emoji
|
| Returns: | This emoji.
|
-
guild
| Return type: | Guild |
| Returns: | The Guild this emoji object is associated with. |
-
roles
| Return type: | List[Role] |
| Returns: | A list of Role this emoji can be used by. |
-
snowflake_timestamp
| Return type: | datetime |
| Returns: | The timestamp of the snowflake. |
-
url
| Return type: | str |
| Returns: | The URL to this emoji. |