RileCraft / DiscordBot-Template

A bot template with command , event , button , selectmenus , slashcommands handler and error handlers. Made in Discord.JS V14
MIT License
229 stars 59 forks source link

Excute an owner command but its not the owner #56

Closed Kawet00 closed 1 year ago

Kawet00 commented 1 year ago

Describe the issue When a member thats not a developer exceute a developers command like eval, it excute the command and after it send the message for ownerOnly. I have not errors

To Reproduce I don't know what I changed

Expected behavior don't execute the command

Screenshots

Host Details:

Additional context I test with the template so I change nothing in the conde just the Config.js and it work and I changed the messageCreate with the original and it dosen't work too so, it don't execute the command. So I need to know where I need to look for execute the loadCommandOption and after the command

RileCraft commented 1 year ago

Never seen this happen before. You can find all the commandOption files in Structures/CommandOptions.

I'm not really sure what caused this but if it keeps happening then i would suggest to for some time manually create an owner only if() condition.

Kawet00 commented 1 year ago

ok but you know where in the project why load the command with the option so load the options AND AFTER the command? because I think its this

Kawet00 commented 1 year ago

I already so put the original MessageCreate but it dosen't work too

RileCraft commented 1 year ago

Not sure right now what causing the problem but i will try to fix it soon