nevim
This commit is contained in:
parent
f2530c6754
commit
6a68b9df84
@ -208,7 +208,7 @@ const exp: Modul = {
|
||||
|
||||
const make = (akce: "a" | "r", role: Role) => {
|
||||
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);
|
||||
};
|
||||
if (akce == "a") member.roles.add(role).catch(handle);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user