Skip to content

$addEmoji

$addEmoji will add an emoji to the given guild. If role IDs are given, the emoji will only be usable by users with one of the provided role IDs.

Usage

$addEmoji[guildID;URL;name;returnEmoji?;reason?;...roles?]

Parameters

FieldTypeDescriptionRequired
guildIDnumberguild IDtrue
URLstringvalid image URLtrue
namestringemoji nametrue
returnEmoji?stringreturn the created emoji?false
reason?stringreason which will be displayed in the guild’s audit logsfalse
roles?numberwhich roles will be able to use the given emojifalse

Example(s)

This will create an emoji:

1
client.command({
2
name: "addEmoji",
3
code: `
4
$addEmoji[$guildID;https://cdn.discordapp.com/emojis/1010320053687832586.webp?size=96&quality=lossless;leref;false]
5
`
6
});