disable commands by dashboard.

I want to disable commands through dashboard so, is there any way to dynamically disable commands ?
Solution:
<command>.enabled = false
Jump to solution
13 Replies
Solution
Favna
Favna2y ago
<command>.enabled = false
ararou!
ararou!2y ago
can’t you als do container.stores.get('commands').get(command).unload();
Favna
Favna2y ago
That unloads the entire command whereas flipping enabled will then stop the command at precondition level.
ararou!
ararou!2y ago
ah
Tirupati[E3S1PRO]
is there any Oauth2 docs available ?
Favna
Favna2y ago
Discord Developer Portal
Discord Developer Portal — API Docs for Bots and Developers
Integrate your service with Discord — whether it's a bot or a game or whatever your wildest imagination can come up with.
Tirupati[E3S1PRO]
no I am talking about Oauth with sapphire js. it have auth built in right
Favna
Favna2y ago
there are no guide pages for the built in routes, no. anyway you call /oauth/callback from the frontend after getting the code back from discord pretty much. You can find more info by search oauth2 in #old-coding-den also if you write slash commands and actually find a unique niche instead of making the trillionth kitchen sink do it all bot then you probably wont even need a dashboard it will also "fix" your messageUpdate issue because you dont use messages anymore like you should be
Tirupati[E3S1PRO]
ok how can i get all guilds of user using oauth2 of sapphire js
Favna
Favna2y ago
.
Tirupati[E3S1PRO]
so i need to use api or third party libraries like discord-oauth2
Favna
Favna2y ago
oh guilds I read guides look at @Skyra's code https://github.com/skyra-project/skyra
Favna
Favna2y ago
or consult the Discord API documentation at https://discord.dev
Discord Developer Portal
Discord Developer Portal — API Docs for Bots and Developers
Integrate your service with Discord — whether it's a bot or a game or whatever your wildest imagination can come up with.
Want results from more Discord servers?
Add your server