bot: update to use server schema
vi did:web:vt3e.cat
Wed, 27 May 2026 00:34:15 +0100
1 files changed,
2 insertions(+),
2 deletions(-)
M
apps/bot/src/preconditions/guild.ts
→
apps/bot/src/preconditions/guild.ts
@@ -6,7 +6,7 @@ export class GuildCheckPrecondition extends Precondition {
public override chatInputRun(interaction: ChatInputCommandInteraction) { if (!interaction.guildId) return this.error({ message: "This command can only be used in a server." }); - if (interaction.guildId === config.discord.guild) return this.ok(); + if (interaction.guildId === config.discord.server.id) return this.ok(); return this.error({ message: "This command can only be used in the configured server.",@@ -15,7 +15,7 @@ });
} public override contextMenuRun(interaction: ContextMenuCommandInteraction) { - if (interaction.guildId !== config.discord.guild) return this.ok(); + if (interaction.guildId !== config.discord.server.id) return this.ok(); return this.error({ message: "This command can only be used in the configured server.",