Archived
Fixed an error with registering guild slash commands
This commit is contained in:
1 parent
1992d0f86d
commit
8f11fae0c4
1 file changed
+1
-1
+1
-1
@@ -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) => {
|
||||||
|
|||||||
Reference in new issue
Block a user