Create a new GuildAssets Method handler
Usually SnowTransfer creates a method handler for you, this is here for completion
You can access the methods listed via client.guildAssets.method
, where client
is an initialized SnowTransfer instance
request handler that calls the rest api
Create a new Emoji
Id of the guild
Emoji data, check the example
(https://discord.com/developers/docs/resources/emoji#emoji-object)
Permissions needed | Condition |
---|---|
MANAGE_EMOJIS_AND_STICKERS | always |
Create a guild sticker
Id of the guild
Sticker data
Permissions needed | Condition |
---|---|
MANAGE_EMOJIS_AND_STICKERS | always |
Guild VERIFIED or PARTNERED | If CurrentUser tries to create a LOTTIE sticker |
Delete an emoji
Id of the guild
Id of the emoji
Reason for deleting the emoji
Resolves the Promise on successful execution
Permissions needed | Condition |
---|---|
MANAGE_EMOJIS_AND_STICKERS | always |
Delete a guild sticker
Id of the guild
Id of the sticker
Resolves the Promise on successful execution
Permissions needed | Condition |
---|---|
MANAGE_EMOJIS_AND_STICKERS | always |
Get an emoji via guildId + emojiId
Id of the guild
Id of the emoji
Get a list of emojis of a guild
Id of the guild
Array of emoji objects
Get a guild sticker
Id of the guild
Id of the sticker
Permissions needed | Condition |
---|---|
MANAGE_EMOJIS_AND_STICKERS | if the CurrentUser desires the user field |
Get all guild stickers
Id of the guild
An Array of sticker objects
Permissions needed | Condition |
---|---|
MANAGE_EMOJIS_AND_STICKERS | if the CurrentUser desires the user field |
Get a global sticker
Id of the sticker
Update an existing emoji
Id of the guild
Id of the emoji
Emoji data
(https://discord.com/developers/docs/resources/emoji#emoji-object)
Permissions needed | Condition |
---|---|
MANAGE_EMOJIS_AND_STICKERS | always |
Update a guild sticker
Id of the guild
Id of the sticker
Sticker data
Permissions needed | Condition |
---|---|
MANAGE_EMOJIS_AND_STICKERS | always |
Generated using TypeDoc
Methods for interacting with emojis