diff options
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/interactions/server.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/interactions/server.ts b/packages/interactions/server.ts index 6270468..5ac6385 100644 --- a/packages/interactions/server.ts +++ b/packages/interactions/server.ts @@ -30,7 +30,7 @@ import { } from "./discord/embeds.ts"; import { JSONResponse } from "./discord/responses.ts"; import { verifyDiscordRequest } from "./discord/verification.ts"; -import { GUILD_ID, COLOR_ROLE_IDS } from "../shared"; +import { CENTRAL_GUILD_ID, COLOR_ROLE_IDS } from "../shared"; const router = AutoRouter(); const COMPLAINT_CHANNEL_ID = "1415868433714778204"; @@ -663,7 +663,7 @@ router.post("/", async (request: Request, environment: Environment) => { const roleDistribution = await fetchRoleDistribution( environment, - GUILD_ID, + CENTRAL_GUILD_ID, ); if (roleDistribution.length === 0) @@ -729,7 +729,7 @@ router.post("/", async (request: Request, environment: Environment) => { }); const guild = await fetch( - `https://discord.com/api/v10/guilds/${GUILD_ID}/members/${targetUserID}`, + `https://discord.com/api/v10/guilds/${CENTRAL_GUILD_ID}/members/${targetUserID}`, { headers: { Authorization: `Bot ${environment.DISCORD_TOKEN}`, @@ -815,7 +815,7 @@ router.post("/", async (request: Request, environment: Environment) => { } const updateResponse = await fetch( - `https://discord.com/api/v10/guilds/${GUILD_ID}/members/${targetUserID}`, + `https://discord.com/api/v10/guilds/${CENTRAL_GUILD_ID}/members/${targetUserID}`, { method: "PATCH", headers: { @@ -909,7 +909,7 @@ router.post("/", async (request: Request, environment: Environment) => { }); const guild = await fetch( - `https://discord.com/api/v10/guilds/${GUILD_ID}/members/${targetUserID}`, + `https://discord.com/api/v10/guilds/${CENTRAL_GUILD_ID}/members/${targetUserID}`, { headers: { Authorization: `Bot ${environment.DISCORD_TOKEN}`, @@ -972,7 +972,7 @@ router.post("/", async (request: Request, environment: Environment) => { } const updateResponse = await fetch( - `https://discord.com/api/v10/guilds/${GUILD_ID}/members/${targetUserID}`, + `https://discord.com/api/v10/guilds/${CENTRAL_GUILD_ID}/members/${targetUserID}`, { method: "PATCH", headers: { |