#help
1 messages · Page 1 of 1 (latest)
oh
where would it be?
is this the part where i feel super dumb
you need an event to receive an interaction create
client.on('interactionCreate', async interaction => { if(interaction.isChatInputCommand()) { const command = bot.commands.get(interaction.commandName);
if(!command) return;
command.execute(bot, interaction)}})

idk if code is perfectly correct cuz im om phone but try to fix it
i mean just an event he can find in every tutorial
no prob ig
is client.on supposed to be client.once
?
where did you added it?
now go on your command file
and above data:
add
name: "ping",
there should be the command name
what is bot
is it client?
this is what it says
yes wair
go on your ping
add above data:
name: "ping",
also go on your command handler
and change the push thing to this
client.commands.set(command.name, command)
also command should be a collection
bro what did you follow
the official guide
change const commands = [] to client.commands = new Discord.Collection()
is there some like boilerplate i can use i am so bad at following this stuff 💀
i'm running off and getting a boilerplate
i just did
and send me the fuckin code