Implementing global commands

I have a set of commands that I want to register as global commands. Right now i am registering it as guild commands which keep on triggering the rate limit.
11 Replies
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Febkosq8
Febkosq8OP3y ago
i read discord js docs and found this
Febkosq8
Febkosq8OP3y ago
but this doesn't seem the way I initially used in my bot i need to know where to change so that it gets registered as global commands
Febkosq8
Febkosq8OP3y ago
Febkosq8
Febkosq8OP3y ago
await guild.commands .set(client.commands) this is my current code that registers the commands
Parogo_72
Parogo_723y ago
client.application.commands.set
Febkosq8
Febkosq8OP3y ago
that worked
Febkosq8
Febkosq8OP3y ago
where can i find this in the discord js docs
d.js docs
d.js docs3y ago
Documentation suggestion for @febkosq8:property Client#application The application of this bot
Parogo_72
Parogo_723y ago
You can use the search bar though
Febkosq8
Febkosq8OP3y ago
i did try using the search bar but it didnt help me at all i might be searching the wrong term thanks anyway
Want results from more Discord servers?
Add your server