help with command

so basically i run the command and its supposed to be an embed for users to click and the choose the reaction to open that ticket type and when i run tht command the bot reacts and then deletes that reaction and makes its own ticket and only keeps one reaction and that reaction doesnt even work if u know wha ti mean
5 Replies
d.js toolkit
d.js toolkit•12mo 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! - āœ… Marked as resolved by OP
ahmood
ahmood•12mo ago
Filter out bots when listening to the reaction event
.
.OP•12mo ago
idek how to code someone just made it for me. this is the command itself if it helps idk
const { MessageEmbed } = require("discord.js")


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

const ticketEmbed = new MessageEmbed()
.setTitle("šŸŽŸ | 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("šŸ›");
await ticketEmbedMsg.react("ā“");
await ticketEmbedMsg.react("ā”");

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


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

const ticketEmbed = new MessageEmbed()
.setTitle("šŸŽŸ | 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("šŸ›");
await ticketEmbedMsg.react("ā“");
await ticketEmbedMsg.react("ā”");

}
}
monbrey
monbrey•12mo ago
If you cant code, you're not going to be able to apply code fixes either
ahmood
ahmood•12mo ago
then probably ask that someone to fix it

Did you find this page helpful?