Using Commands
my main discord account can access my bots commands but when i try to use commands from a second account nothing shows up for my bot, what would cause this to happen?
Discord.js: 14.13.0
Node: 18.15.0
this is one of my commands when its registered
2 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!would it be better to use a number for the default permissions instead of using the string?
all commands are registered with this.application?.commands.set(commands);
nope im the only person that can do anything with the discord server, and that command has always had the SendMessages permission
reloading discord is the first thing i did
just cleared out all my commands from discord re registering them now to see if anything changes
yep, auto assigned when they click a button to get access to all the channels in the discord
i checked to make sure, they do have it
flushing the commands did nothing either
they have the member role which has the UseApplicationCommand Permission
im not sure if thats what it was you was looking for
in my ready event i added
logs: Collection(0) [Map] {}
all commands are global
it has a full list of my commands
yea its in the server and my alt has the permissions to send messages
these are the scopes the bot has too
scope: 'identify guilds applications.commands bot',
seems my alt can use commands in my test server but not in my main server yet my commands are registered globally!
i figured out the issue, for some reason my channel got out of sync with the category and the channel was set to not be able to use commands but the category was set to use commands, thank you for the help