disable commands by dashboard.
I want to disable commands through dashboard so, is there any way to dynamically disable commands ?
13 Replies
Solution
<command>.enabled = false
can’t you als do
container.stores.get('commands').get(command).unload();
That unloads the entire command whereas flipping enabled will then stop the command at precondition level.
ah
is there any Oauth2 docs available ?
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.
no I am talking about Oauth with sapphire js. it have auth built in right
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 beok
how can i get all guilds of user using oauth2 of sapphire js
.
so i need to use api or third party libraries like discord-oauth2
oh guilds
I read guides
look at @Skyra's code
https://github.com/skyra-project/skyra
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.