beta1d - removed timeouts, cleaned up code, updated JSDoc, added options to disable command as a slash command

This commit is contained in:
mmacierzanka committed 2021-08-09 13:48:40 +02:00
1 parent 027c5aa15a
commit 4b37c92781
5 files changed
+28 -29

No files matched your search

+1 -1
View File
@@ -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}` } }
);