Emoji
- class Emoji()
A custom emoji owned by a guild.
exported from
lib.weeble.d- Implements:
Properties
- Emoji.createdAt
-
When this emoji was created, decoded from the emoji snowflake.
- Emoji.roles
type: readonly string[] | null | undefined
Role IDs allowed to use the emoji, or
nullwhen unrestricted.
- Emoji.user
type: readonly
User| null | undefinedUser who created the emoji when Discord includes it.
Methods
- async Emoji.delete(reason: string) Promise<void>
Delete this emoji.
- Parameters:
reason — – Reason for deletion, shown in audit log.
-
async Emoji.edit(options:
EmojiEditOptions) Promise<Emoji> Edit emoji properties.
- Parameters:
options — – Emoji properties to update (name, restricted roles).
- Returns:
The updated emoji.