How can I search for a message that has a certain text string in a channel using discord.js?
I basically am building a discord bot that needs me to search a specific channel of mine for a string like find every message that has the word “silver” in it. Is there a specific way that I may achieve this?
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.