node version 13
So can I make the bot reacts to message with nitro emojis that I don't have?if yup how
Here is my code:
const { MessageEmbed } = require("discord.js")
module.exports = (client) => {
const suggestionChannel = client.channels.cache.get('898834097181437963') // Channel For Suggestion
client.on('message', message => {
if(message.channel === suggestionChannel) {
if(message.author.bot) return // Does not Delete BOTs Messages
message.delete() // Delete Original Message Sent By User
const embed = new MessageEmbed()
.setColor('#000000')
.setTitle(`${message.author.tag} suggested something!`, message.author.displayAvatarURL({ dynamic:true }))
.setDescription(`**${message.content}**`)
.setFooter('Vote if you agree/disagree!')
message.channel.send({ embeds: [embed]}).then(message => { // Reactions
message.react('emoji1') // Change Emoji
message.react('emoji2') // Change Emoji
})
}
})
}
As you said, you want to get animated emoji id so you can use it to react like with non-animated one, so:
<li role<img... element. It should have a src="link" text. Right click on url and "Cipy link address".https://cdn.discord.com/emojis/emoji_id.png?v=1 Now you only need to copy this id and when you have both name and id use:
message.react('<:emoji_name:emoji_id>') but if your emoji is .gif you have to use message.react('<a:emojiname:emojiid>') instead