diff --git a/projects/backend/src/bot/bot.ts b/projects/backend/src/bot/bot.ts index 55d375f..1d24d02 100644 --- a/projects/backend/src/bot/bot.ts +++ b/projects/backend/src/bot/bot.ts @@ -2,6 +2,7 @@ import { Client } from "discordx"; import { ActivityType, EmbedBuilder } from "discord.js"; import { Config } from "@ssr/common/config"; +export const guildId = "1295984874942894100"; export enum DiscordChannels { trackedPlayerLogs = "1295985197262569512", numberOneFeed = "1295988063817830430", diff --git a/projects/backend/src/bot/command/refresh-player-scores-command.ts b/projects/backend/src/bot/command/refresh-player-scores-command.ts index dee2d49..6354d28 100644 --- a/projects/backend/src/bot/command/refresh-player-scores-command.ts +++ b/projects/backend/src/bot/command/refresh-player-scores-command.ts @@ -1,9 +1,11 @@ -import { Discord, Slash } from "discordx"; +import { Discord, Guild, Slash } from "discordx"; import { CommandInteraction } from "discord.js"; import { PlayerService } from "../../service/player.service"; +import { guildId } from "../bot"; @Discord() export class RefreshPlayerScoresCommand { + @Guild(guildId) @Slash({ description: "Refreshes scores for all tracked players", name: "refresh-player-scores",