3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

simplify ternary

This commit is contained in:
almeidx 2021-07-29 00:52:19 +01:00
parent bd5e5100a5
commit de7c721c0e
No known key found for this signature in database
GPG key ID: 8558FBFF849BD664

View file

@ -89,7 +89,7 @@ export const SlowmodeSetCmd = slowmodeCmd({
if (mode === "native") {
const missingPermissions = getMissingPermissions(
channelPermissions ? channelPermissions : new Permissions(),
channelPermissions ?? new Permissions(),
NATIVE_SLOWMODE_PERMISSIONS,
);
if (missingPermissions) {
@ -104,7 +104,7 @@ export const SlowmodeSetCmd = slowmodeCmd({
if (mode === "bot") {
const missingPermissions = getMissingPermissions(
channelPermissions ? channelPermissions : new Permissions(),
channelPermissions ?? new Permissions(),
BOT_SLOWMODE_PERMISSIONS,
);
if (missingPermissions) {