From 203dc6bfdd795933c982116497405115924dceaa Mon Sep 17 00:00:00 2001 From: smyalygames Date: Sun, 6 Nov 2022 00:01:42 +0000 Subject: [PATCH] feat(arabot): add modmail to staff checker --- src/utils/checker.ts | 6 ++---- src/utils/devIDs.ts | 1 + src/utils/ids.ts | 1 + 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/utils/checker.ts b/src/utils/checker.ts index 34892a7..c60cd87 100644 --- a/src/utils/checker.ts +++ b/src/utils/checker.ts @@ -32,8 +32,6 @@ export function checkStaff(channel: TextChannel) { return false; } - if (channel.parent.id === IDs.categories.staff) { - return true; - } - return false; + return channel.parent.id === IDs.categories.staff + || channel.parent.id === IDs.categories.modMail; } diff --git a/src/utils/devIDs.ts b/src/utils/devIDs.ts index 0507fc0..de27809 100644 --- a/src/utils/devIDs.ts +++ b/src/utils/devIDs.ts @@ -98,6 +98,7 @@ const devIDs = { }, categories: { staff: '999431676058927253', + modMail: '999431676633563236', verification: '999431677006860409', diversity: '999431679053660185', }, diff --git a/src/utils/ids.ts b/src/utils/ids.ts index 9506e87..d5fb98e 100644 --- a/src/utils/ids.ts +++ b/src/utils/ids.ts @@ -101,6 +101,7 @@ let IDs = { }, categories: { staff: '768685283583328257', + modMail: '867077297664426006', verification: '797505409073676299', diversity: '933078380394459146', },