Archived
beta1d - removed timeouts, cleaned up code, updated JSDoc, added options to disable command as a slash command
This commit is contained in:
1 parent
027c5aa15a
commit
4b37c92781
5 files changed
+28
-29
No files matched your search
+1
-1
@@ -121,7 +121,7 @@ export class Bot extends EventEmitter {
|
||||
await axios.put(
|
||||
`https://discord.com/api/v8/applications/${this.applicationId}/commands`,
|
||||
this.commands.list
|
||||
.filter((c) => !c.guilds)
|
||||
.filter((c) => !c.guilds && c.slash)
|
||||
.map((c) => (!c.guilds ? c.toCommandObject() : {})),
|
||||
{ headers: { Authorization: `Bot ${this.token}` } }
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user