#Issures with my commands

1 messages · Page 1 of 1 (latest)

bronze spear
#

Hey had issues with my commands I cannot see the error I'm trying to console log everything nothing works

still crescent
#

Can you be a bit more specific? What doesn’t work? Do you have an interactionCreate event?

bronze spear
#

All my commands don't work bots online

#

all code looks good

#

And yes I do have an iteraction create event

still crescent
#

Then show that code

bronze spear
#

It looks normal

#

no console errors

#

sept for strictquerry shit that I don't have to worry about

#

for mongo

#

Is it the text

#

?

#

idk

still crescent
#

You don’t actually call the command you get from the collection. You just get it and that‘s it… you need to call it for it to do something

bronze spear
#

nah you have to have it there

#

it shows light blue

still crescent
#

What? Read what I said again. You‘re missing the part where you actually call the command file‘s function. Your interactionCreate event currently just checks if the command exists, sends an error if it doesn’t but doesn’t do anything if it does exist

bronze spear
#

Yeah It uset to have a dev only

#

part

#

In it

#

Ill send it but after that ima go to bed and get some sleep

#
if (command.developer && interaction.user.id !=devid) {
             return interaction.reply({
                embeds: [
                    new EmbedBuilder()
                        .setColor("#AB8062")
                        .setDescription(':warning: | This command is for Develepors only')
                ],
                ephemeral: true
            });
             
            }