disable commands by dashboard.

I want to disable commands through dashboard so, is there any way to dynamically disable commands ?
Solution:
<command>.enabled = false
Solution
F
Favna422d ago
<command>.enabled = false
A
Ararou421d ago
can’t you als do container.stores.get('commands').get(command).unload();
F
Favna421d ago
That unloads the entire command whereas flipping enabled will then stop the command at precondition level.
A
Ararou421d ago
ah
T
Tirupati[E3S1PRO]420d ago
is there any Oauth2 docs available ?
F
Favna420d 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.
T
Tirupati[E3S1PRO]420d ago
no I am talking about Oauth with sapphire js. it have auth built in right
F
Favna420d 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
T
Tirupati[E3S1PRO]420d ago
ok how can i get all guilds of user using oauth2 of sapphire js
F
Favna420d ago
.
T
Tirupati[E3S1PRO]420d ago
so i need to use api or third party libraries like discord-oauth2
F
Favna420d ago
oh guilds I read guides look at @Skyra's code https://github.com/skyra-project/skyra
F
Favna420d 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
More Posts
What is the difference between response.status and response.statusCode ?When using the API Plugin of Sapphire.Hey what is DEVELOPMENT MODE and how do I disable itI tried setting the Node_Env to something else but it did not change it in the consoleBotList Autopost of stats is not workingI am using the bot list plugin https://github.com/devtomio/sapphire-plugin-botlist I set everything Miss matching objects on permission setting.Typescript says that permissionOverwrites does not exits in GuildBasedChannel, even tho it exists, irequiredClientPermissions check always rejectingWhile `requiredUserPermissions: ['ManageRoles']` works great. The client check `requiredClientPermisUnable to get member data from users that have left / kickedHi, I am trying to get data from members who have left the discord server or have been kicked. But ICatch all chat input command errors listenerHello ! I tried using the `Events.ChatInputCommandError` listener to catch any errors thrown by the Multiple Clients on one file/instanceI was wondering if its possible to run multiple clients on one file (i.e. .forEach()-ing `new ClientHow to present Slashcommands?How can I present the Slashcommands of my bot in his About Me like for example carl.gg does?Interaction HandlersAm I required to specify to sapphire where my interaction handlers directory is? A `interaction-handbot won't get on and connect to discord.hi, my bot won't turn on. i've coded a lot of bots before with sapphire and they worked just fine, dHow Do I Make a Project in my current Directory?I want to make the proj in `workspaces/DashMate` not like `workspaces/DashMate/${ProjName}`Bot wont go onlinewhen I try to run the script `yarn dev` I get this problemGuildDelete Event somehow gets triggered when I restart my BotI have no idea whats happening but if my bot (docker container) restarts, this notification gets senTypeError: Class extends value undefined is not a constructor or nullHey, newbie here in both TypeScript and Sapphire, and I'm trying to build a command but I'm getting THREAD_CREATE event Listener run method argumentsWhat I want to do: I want to inspect the id of the parent channel where the thread was created. TheCommand info command issueI have a command info command, but when I try to get information on a command called "flags" it retuawait args.pick("member");how to enable this? https://discord.com/channels/737141877803057244/737142071319855105/107804884825Command info command issueI have a command info command, but when I try to get information on a command called "flags" it retuRunning in productionHey! What's the recommended method for starting up a node app in production? Specifically for Discor