Skip to content

Commit

Permalink
[Fix] guild.commands.set() does not execute properly (client has no m…
Browse files Browse the repository at this point in the history
…ore access)
  • Loading branch information
naseif committed Sep 3, 2021
1 parent 15aaed9 commit 6e5fdec
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions events/guildDelete.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,5 @@ module.exports = {
guild.client.user.setActivity(`${guilds.length} Servers!`, {
type: "WATCHING",
});
try {
await guild.commands.set([]);
} catch (err) {
console.error(`Something went wrong, ${err.message}`);
}
},
};

0 comments on commit 6e5fdec

Please sign in to comment.