mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
simplify ternary
This commit is contained in:
parent
bd5e5100a5
commit
de7c721c0e
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue