Fixed an error with registering guild slash commands

This commit is contained in:
mmacierzanka committed 2021-08-29 17:20:03 +02:00
1 parent 1992d0f86d
commit 8f11fae0c4
1 file changed
+1 -1
+1 -1
View File
@@ -218,7 +218,7 @@ export class Bot extends EventEmitter {
{ headers: { Authorization: `Bot ${this.token}` } } { headers: { Authorization: `Bot ${this.token}` } }
); );
const guilds: any = {}; const guilds: any = {};
this.commands.list await this.commands.list
.filter((c) => Array.isArray(c.guilds) && c.guilds.length > 0) .filter((c) => Array.isArray(c.guilds) && c.guilds.length > 0)
.map((c) => { .map((c) => {
c.guilds?.map(async (g) => { c.guilds?.map(async (g) => {