v5.0.0
$addEmoji
Add a Emoji to the Guild.
This function takes care of automatically adding an emoji to the server using the provided URL.
The URL of the original image must be under 256kb in size.

Fields:

This function has 3 properties who are required and another 2 optional. The order it's the next:
  1. 1.
    guildId (Required)
  2. 2.
    URL (Required)
  3. 3.
    Name (Required)
  4. 4.
    reason (Optional)
  5. 5.
    roleIDs (optional)
Raw Usage: $addEmoji[guildId;url;name;reason;roleId1;roleId2;...]

Options:

  • guildId - The guild ID for the emoji will be added
  • URL - The url of the image/gif that's being converted to an emoji
  • Name => The name of the emoji
  • reason => The reason why emoji added
  • roleIDs => Array of roles' IDs they should have access to that emoji. Only members with these role would have access to see and use that emoji. Leave it empty to set to everyone.
An example of the use should be the next:

Usage

1
bot.command({
2
name: "add-emoji",
3
code: `$addEmoji[$guildID;https://cdn.discordapp.com/emojis/786763619438166036.png;shy_bear;Because why not;849217373214474253]`
4
});
Copied!
URL NEEDS to end in .gif, .png or .jpg
Last modified 1mo ago
Copy link
Edit on GitHub