if (message.content.startsWith(prefix + "addemoji")) {
const match = /<(a?):(.+):(d+)>/u.exec(message.content);
if (!match)
return message.reply('Please include a custom emoji in your message!',);
const [ animated, name, id ] = match;
const url = `https://cdn.discordapp.com/emojis/${id}.${animated ? 'gif' : 'png'}`;
const nameid = `<:${name}:${id}>`;
message.guild.emojis.create(url, name);
let newname = console.log(name);
let newid = console.log(id);
}
i want it to be like $addemoji `emoji` then it adds the emoji to the guild u run the command in