From 7e1d172b434f66588f5a0b2e274111d0a44eb9b6 Mon Sep 17 00:00:00 2001 From: Liam Date: Fri, 25 Oct 2024 18:01:44 +0100 Subject: [PATCH] fix perms --- projects/backend/src/bot/bot.ts | 1 + .../backend/src/bot/command/refresh-player-scores-command.ts | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) 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",