Skip to content

Commit

Permalink
handle missing send permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
bgv2 committed May 16, 2024
1 parent 30fceb8 commit 0a41331
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ process.on("SIGTERM", async () => {
}
})
process.on("uncaughtException", async (err) => {
if (err.name == "DiscordAPIError" && err.message == "Missing Permissions") return;

console.log(err);
try {
if (envVars.QBEXITHOOK) {
Expand Down

0 comments on commit 0a41331

Please sign in to comment.