From d42c4ce1cb156889d6cbfb72173c9a05680966d8 Mon Sep 17 00:00:00 2001 From: smyalygames Date: Fri, 28 Oct 2022 02:33:05 +0100 Subject: [PATCH] fix(arabot): change preconditions for restricted access only --- src/commands/mod/ban.ts | 2 +- src/commands/mod/unban.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/mod/ban.ts b/src/commands/mod/ban.ts index 58a1df3..658ce01 100644 --- a/src/commands/mod/ban.ts +++ b/src/commands/mod/ban.ts @@ -28,7 +28,7 @@ class BanCommand extends Command { ...options, name: 'ban', description: 'Bans a user', - preconditions: ['ModOnly'], + preconditions: ['RestrictedAccessOnly'], }); } diff --git a/src/commands/mod/unban.ts b/src/commands/mod/unban.ts index f923227..0a0e59d 100644 --- a/src/commands/mod/unban.ts +++ b/src/commands/mod/unban.ts @@ -28,7 +28,7 @@ class UnbanCommand extends Command { ...options, name: 'unban', description: 'Unbans a user', - preconditions: ['ModOnly'], + preconditions: ['RestrictedAccessOnly'], }); }