Skip to content

Commit 5dfbeb5

Browse files
committed
return promise for all
1 parent 29b8701 commit 5dfbeb5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ client.on("ready", async () => {
3434
console.log("Checking if all roles exist in servers.");
3535

3636
await Promise.all(
37-
client.guilds.cache.map(async (guild) => {
38-
checkForRoles(guild);
37+
client.guilds.cache.map((guild) => {
38+
return checkForRoles(guild);
3939
})
4040
);
4141
}

0 commit comments

Comments
 (0)