Skip to content

Commit

Permalink
pre-del unauthorized customclients
Browse files Browse the repository at this point in the history
  • Loading branch information
Larsundso committed Sep 22, 2024
1 parent 2ea884c commit e6ca3bd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/register-commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ if (!process.argv.includes('--dev')) {
),
)
.then((r) => console.log(`[CUSTOM] Registered ${r.length} Global Commands`))
.catch(() => console.log(`Unauthorized for ${s.appid}`));
.catch((e) => {
console.log(`Unauthorized for ${s.appid}`, e);
// DataBase.customclients.delete({ where: { guildid: s.guildid } }).then();
});
});
}

Expand Down

0 comments on commit e6ca3bd

Please sign in to comment.