summaryrefslogtreecommitdiff
path: root/packages/gateway
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-10-06 22:22:00 -0700
committerFuwn <[email protected]>2025-10-06 22:22:00 -0700
commitb6a2426dfd5ca737b8e4133fd72d7e0de65c14f8 (patch)
treef50668a2b80ca72b965f3a34e41a8089120a2687 /packages/gateway
parentfix(interactions:server): Update constant references (diff)
downloadumabotdiscord-b6a2426dfd5ca737b8e4133fd72d7e0de65c14f8.tar.xz
umabotdiscord-b6a2426dfd5ca737b8e4133fd72d7e0de65c14f8.zip
refactor(gateway:roleProtection): Use colour role IDs global constant
Diffstat (limited to 'packages/gateway')
-rw-r--r--packages/gateway/src/constants.ts1
-rw-r--r--packages/gateway/src/listeners/roleProtection.ts31
2 files changed, 2 insertions, 30 deletions
diff --git a/packages/gateway/src/constants.ts b/packages/gateway/src/constants.ts
index 1a1bc0f..2a680e1 100644
--- a/packages/gateway/src/constants.ts
+++ b/packages/gateway/src/constants.ts
@@ -32,4 +32,5 @@ export {
STAFF_LOG_CHANNEL_ID,
CENTRAL_OKBUDDY_EMOJI_ID,
BOT_ID,
+ COLOR_ROLE_IDS,
} from "../../shared";
diff --git a/packages/gateway/src/listeners/roleProtection.ts b/packages/gateway/src/listeners/roleProtection.ts
index 4d290a3..aa24dbf 100644
--- a/packages/gateway/src/listeners/roleProtection.ts
+++ b/packages/gateway/src/listeners/roleProtection.ts
@@ -1,34 +1,5 @@
import { Client, Events } from "discord.js";
-import { CENTRAL_GUILD_ID, CENTRAL_PROTECTED_ROLE_ID } from "../constants";
-const COLOR_ROLE_IDS = [
- "1407075059830624406", // Nice Nature Red
- "1407075160250650664", // Taiki Shuttle Green
- "1407075256904187997", // Mejiro McQueen Purple
- "1407075372427640952", // Gold Ship Grey
- "1407075670177091664", // Grass Wonder Gold
- "1407078154555752589", // Agnes Tachyon Dark Purple
- "1407345006108475476", // Special Week Salmon
- "1408246546708959403", // Biwahaya Hide Linen
- "1408247166413176943", // Symboli Rudolf Celeste
- "1411128003924332764", // King Halo Dark Blue
- "1413582797284708474", // Matikanetannhauser Lemon
- "1414435043761324042", // Silence Suzuka Sea Green
- "1414454914138116158", // Haru Urara Pink
- "1414455824524247161", // TM Opera O Orange
- "1414456352167825490", // Oguri Cap Buttermilk
- "1414541675396862012", // Kitasan Black Sable
- "1415083621152460832", // Tokai Teio Royal Blue
- "1415520343690575883", // Aston Machan Sienna
- "1415539100315942962", // Super Creek Baby Blue
- "1415539544232824913", // Sakura Bakushin O Lilac
- "1415567915578818723", // El Condor Pasa Biscotti
- "1415592658906124338", // Still in Love Crimson
- "1415593126273224795", // Mayano Top Gun Navy Blue
- "1415797242845200475", // Mr. C.B. Forest Green
- "1416583306698297354", // Seuin Sky Mint
- "1416583690217328660", // Neo Universe Pastel Yellow
- "1416595046249267364", // Manhattan Cafe Jet Black
-];
+import { CENTRAL_GUILD_ID, CENTRAL_PROTECTED_ROLE_ID, COLOR_ROLE_IDS } from "../constants";
export const handleRoleProtection = (client: Client) => {
client.on(Events.GuildMemberUpdate, async (oldMember, newMember) => {