#is it really that private you can create
1 messages · Page 1 of 1 (latest)
just inside the execute function, i just want to check if this event is being handled at all
yea that means it is being loaded, but i want to know if the event is triggering if you use a slash command
if you make an interaction, that is what i want to know
you get no errors if you try to run a command right?
but in your console / terminal
uhh okay, as a side not you shoulnd't be deploying your commands on start up
so I still haven't been answered, i need to know if the event emits at all when you trigger an interaction, i need you to console.log something inside the execute(){} function of the event handler
while you are at that, did you enable the Guilds intent?
in your client instance, when you create it, did you do intents:["Guilds"]?
it seems like you deploy your slash commands everytime you start up your bot, that is not recommended as the daily limit to create / update commands is very limited
by moving the entire part of the script to deploy commands to another file, and only run that file when you need to update or add new commands, the guide has a section for that too
looks good I think... okay did you try logging something inside the execute function of the interactionCreate event?
you did not understand what i told you... I need you to do this execute(interaction){console.log("I was triggered!")} in your interactionCreate file
ok so after you add that you have to restart your bot, trigger an interaction, and check the terminal, hopefully you will see the message there
if that is the case, then we need to check your command file
module.exports = {
name: "InteractionCreate",
async execute(interaction, client) {
console.log("I was triggered!") // <-- Here
if (interaction.isChatInputCommand()) {
const { commands } = client;
should also try logging interaction.commandName