Skip to main content

CreateGuildEmoji

@discordeno/botDocs


Documentation / @discordeno/bot / CreateGuildEmoji

Interface: CreateGuildEmoji

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

Properties

image

image: string

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.

Defined in

packages/types/dist/types/discordeno.d.ts:460


name

name: string

Name of the emoji

Defined in

packages/types/dist/types/discordeno.d.ts:458


roles?

optional roles: BigString[]

Roles allowed to use this emoji

Defined in

packages/types/dist/types/discordeno.d.ts:462