all repos — stealth-developers @ 4d4c55c85bf6ef04a8f459707047df094ee14f1d

bot: update to use server schema
vi did:web:vt3e.cat
Wed, 27 May 2026 00:34:15 +0100
commit

4d4c55c85bf6ef04a8f459707047df094ee14f1d

parent

6a0d732c9b3a37dd1086739ca3bacf5c6e9f8431

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M apps/bot/src/preconditions/guild.tsapps/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.",