feat: update perm plugin (#72)

* feat: make replies ephemeral

* refactor: remove unused default from switch case
This commit is contained in:
Gary
2023-02-10 09:08:29 -06:00
committed by GitHub
parent fc36a052d3
commit 1752f35074

View File

@@ -26,6 +26,7 @@ function payload(resp?: string) {
fetchReply: true,
content: resp,
allowedMentions: { repliedUser: false },
ephemeral: true
} as const;
}
@@ -80,11 +81,6 @@ export function requirePermission(
return controller.stop();
}
return controller.next();
//*********************************************************************************************************************//
default:
console.warn("Perm Check >>> You didn't specify user or bot.");
ctx.reply(payload("User or Bot was not specified."));
return controller.stop();
}
});
}