$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
Field | Type | Description | Required |
---|---|---|---|
guildID | number | guild ID | true |
URL | string | valid image URL | true |
name | string | emoji name | true |
returnEmoji? | string | return the created emoji? | false |
reason? | string | reason which will be displayed in the guild’s audit logs | false |
roles? | number | which roles will be able to use the given emoji | false |
Example(s)
This will create an emoji:
1client.command({2 name: "addEmoji",3 code: `4 $addEmoji[$guildID;https://cdn.discordapp.com/emojis/1010320053687832586.webp?size=96&quality=lossless;leref;false]5 `6});