Relative Content

Tag Archive for javascriptdiscorddiscord.js

the discord bot, which records information in the embed

I wanted to write a bot that adds a value to embed with the /add command to get a sheet with values, if the /del command then it removes 1 value from embed and if I call the /list command Then embed is output with values in a column, please help.

Discord.js creating channel within category

const guild = interaction.guild; const user = interaction.user; const ticketChannelName = ticket-${user.username}`
// create category if not exits
const category = guild.channels.cache.find(c => c.name == ‘TICKETS’ && c.type == ChannelType.GuildCategory);
console.log()

Discord.js Interaction has failed

i am trying to create a simple ticketbot for discord, but i ran into an issue that i cannot seem to fix, i have tried several different approaches and adding a deferReply aswell, but whenever the button to create a ticket is clicked, i get the “interaction has failed” error.
I also added error handling to check if there might be another issue related to permission, but there is no console output at all, so i am really unsure on what the error is.