You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And, i created the following interactionCreate event
client.on('interactionCreate',asyncinteraction=>{if(!interaction.isCommand())return;if(!interaction.guildId)return;constcommand=awaitclient.commands.get(interaction.commandName)if(!command)return;try{awaitcommand.execute(interaction);}catch(e){if(e)console.log(e)awaitinteraction.reply({content: 'An error ocurred while executing that command.',ephemeral: true})}})
My problem is the function "execute" not exist, and i don't know how to fix it
awaitcommand.execute(interaction);
What can i do to solve it?
The text was updated successfully, but these errors were encountered:
Hello, i am trying to implement slash commands in my project... But i am having problemas with the implemention.
I created the following function in utils/registry.ts
And, i created the following interactionCreate event
My problem is the function "execute" not exist, and i don't know how to fix it
What can i do to solve it?
The text was updated successfully, but these errors were encountered: