$addEmoji
Adds an emoji to the discord server where the command is executed.

FUNCTION USAGE

  • $addEmoji[url;name]
  • $addEmoji[url;name;(yes/no)]
  • $addEmoji[url;name;(yes/no);roleID;roleID;...etc]

Properties:

url - An image url being converted into an emoji. name - Define the desired name of the emoji. yes/no - If yes, bot will return emoji. If no, bot will not return emoji. roleID - Any amount of roleIDs that will have access to the new emoji.
Defining the 3rd and 4th fields are optional. Function will also work with 2 fields. If a 3rd field is present but field is blank, bot will not return emoji. If a 4th field is present but field is blank, bot will return an error.

Example 1: Just adding an emoji with a name.

1
bot.Command({
2
name: "add",
3
code: `
4
$addEmoji[https://imageURLhere.png;Mega_Joy]
5
`
6
})
Copied!

Example 2: Adding an emoji with a name and returning the emoji.

1
bot.Command({
2
name: "add",
3
code: `
4
$addEmoji[https://imageURLhere.png;Mega_Joy;yes]
5
`
6
})
Copied!

Example 3: Adding an emoji and only allowing 2 roles to be able to use it.

1
bot.Command({
2
name: "add",
3
code: `
4
$addEmoji[https://imageURLhere.png;Mega_Joy;yes;563834567687022566;763904567647022556]
5
`
6
})
Copied!
Last modified 9mo ago
Copy link
Contents
Properties: