summaryrefslogtreecommitdiff
path: root/packages/gateway/src/commands
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gateway/src/commands')
-rw-r--r--packages/gateway/src/commands/say.ts4
-rw-r--r--packages/gateway/src/commands/utilities.ts6
2 files changed, 5 insertions, 5 deletions
diff --git a/packages/gateway/src/commands/say.ts b/packages/gateway/src/commands/say.ts
index 8a9ab5a..23c2880 100644
--- a/packages/gateway/src/commands/say.ts
+++ b/packages/gateway/src/commands/say.ts
@@ -1,5 +1,5 @@
import { Message } from "discord.js";
-import { GUILD_ID } from "../constants";
+import { CENTRAL_GUILD_ID } from "../constants";
import { replyWithCleanup } from "../utilities";
export const handleSayCommand = async (message: Message) => {
@@ -30,7 +30,7 @@ export const handleSayCommand = async (message: Message) => {
if (messageIdMatch) {
try {
- const guild = message.client.guilds.cache.get(GUILD_ID);
+ const guild = message.client.guilds.cache.get(CENTRAL_GUILD_ID);
if (!guild) {
await replyWithCleanup(message, "❌ Guild not found.");
diff --git a/packages/gateway/src/commands/utilities.ts b/packages/gateway/src/commands/utilities.ts
index fd3b84d..19f9e90 100644
--- a/packages/gateway/src/commands/utilities.ts
+++ b/packages/gateway/src/commands/utilities.ts
@@ -1,5 +1,5 @@
import { Client, ChannelType } from "discord.js";
-import { GUILD_ID } from "../constants";
+import { CENTRAL_GUILD_ID } from "../constants";
export const AUDIT_LOG_GUILD_ID = "1419211292396224575";
export const AUDIT_LOG_CHANNEL_ID = "1419211778793144411";
@@ -408,7 +408,7 @@ export const getAllChannelsInCategory = async (
client: Client,
categoryId: string,
): Promise<{ channels: string[]; channelNames: { [key: string]: string } }> => {
- const guild = client.guilds.cache.get(GUILD_ID);
+ const guild = client.guilds.cache.get(CENTRAL_GUILD_ID);
if (!guild) return { channels: [], channelNames: {} };
@@ -483,7 +483,7 @@ export const executeBulkRoleAssignment = async (
categoryId?: string,
): Promise<void> => {
try {
- const guild = client.guilds.cache.get(GUILD_ID);
+ const guild = client.guilds.cache.get(CENTRAL_GUILD_ID);
if (!guild) {
await sendProgressUpdate(