Skip to main content

DiscordCreateGuildEmoji

@discordeno/bot


Documentation / @discordeno/bot / DiscordCreateGuildEmoji

Interface: DiscordCreateGuildEmoji

Defined in: packages/types/dist/types/discord/emoji.d.ts:23

https://discord.com/developers/docs/resources/emoji#create-guild-emoji-json-params

Properties

image

image: string

Defined in: packages/types/dist/types/discord/emoji.d.ts:27

The 128x128 emoji image. Emojis and animated emojis have a maximum file size of 256kb. Attempting to upload an emoji larger than this limit will fail and return 400 Bad Request and an error message, but not a JSON status code. If a URL is provided to the image parameter, Discordeno will automatically convert it to a base64 string internally.


name

name: string

Defined in: packages/types/dist/types/discord/emoji.d.ts:25

Name of the emoji


roles?

optional roles: string[]

Defined in: packages/types/dist/types/discord/emoji.d.ts:29

Roles allowed to use this emoji