ticket bot reacts to own messages

I have a ticket bot and basically its supposed ot give reactions and open a channel based on which one they chose. It pings the customer once they open it. However, the bot opens its own ticket and reacts and then removes the reaction and it just doesnt work. Ticketembed is the command:
const { MessageEmbed } = require("discord.js")


module.exports = {
name: 'ticketembed',
async execute(message, client) {

const ticketEmbed = new MessageEmbed()
.setTitle(":tickets: | Support Tickets")
.setDescription(`Found a bug, or error? Have a question, or another concern? Would you like to partner with us? Click one of the buttons corresponding to what we listed here!\n\n🐛 - Report a bug\n❓ - General Support\n❔ - Partnerships`)
.setColor("#2F3136")

await message.delete();
const ticketEmbedMsg = await message.channel.send({ embeds: [ticketEmbed] });
await ticketEmbedMsg.react(":bug:");
await ticketEmbedMsg.react(":question:");
await ticketEmbedMsg.react(":grey_question:");

}
}
const { MessageEmbed } = require("discord.js")


module.exports = {
name: 'ticketembed',
async execute(message, client) {

const ticketEmbed = new MessageEmbed()
.setTitle(":tickets: | Support Tickets")
.setDescription(`Found a bug, or error? Have a question, or another concern? Would you like to partner with us? Click one of the buttons corresponding to what we listed here!\n\n🐛 - Report a bug\n❓ - General Support\n❔ - Partnerships`)
.setColor("#2F3136")

await message.delete();
const ticketEmbedMsg = await message.channel.send({ embeds: [ticketEmbed] });
await ticketEmbedMsg.react(":bug:");
await ticketEmbedMsg.react(":question:");
await ticketEmbedMsg.react(":grey_question:");

}
}
I am using discordjs 13.6.0
3 Replies
d.js toolkit
d.js toolkit7mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
-Carlos👑
-Carlos👑7mo ago
i dont understand, what is your issue, the bot reacts to it's own message or the reaction gets removed after it gets added
ahmood
ahmood7mo ago
So what's supposed to happen?
Want results from more Discord servers?
Add your server