This commit is contained in:
Histmy 2023-03-18 22:36:14 +01:00
parent f2530c6754
commit 6a68b9df84

View File

@ -208,7 +208,7 @@ const exp: Modul = {
const make = (akce: "a" | "r", role: Role) => { const make = (akce: "a" | "r", role: Role) => {
const handle = (e: Error) => { const handle = (e: Error) => {
if (e.message == "Missing Permissions") return; if (["Missing Permissions", "DiscordAPIError[50001]: Missing Access"].includes(e.message)) return;
log("chyba pri davani/odebirani role", e); log("chyba pri davani/odebirani role", e);
}; };
if (akce == "a") member.roles.add(role).catch(handle); if (akce == "a") member.roles.add(role).catch(handle);