From 5289d79eb7df5d4c06b72e7581eca2bf8d56e8d2 Mon Sep 17 00:00:00 2001 From: Rory& Date: Fri, 3 Jul 2026 15:39:09 +0200 Subject: Fix some missed column types --- src/database/entities/ApplicationCommand.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/database/entities/ApplicationCommand.ts') diff --git a/src/database/entities/ApplicationCommand.ts b/src/database/entities/ApplicationCommand.ts index 8fc7ef9f..01ff5a14 100644 --- a/src/database/entities/ApplicationCommand.ts +++ b/src/database/entities/ApplicationCommand.ts @@ -35,10 +35,10 @@ export class ApplicationCommand extends BaseClass { @Column({ default: ApplicationCommandType.CHAT_INPUT }) type?: ApplicationCommandType; - @Column() + @Column({ type: "int8" }) application_id: Snowflake; - @Column({ nullable: true }) + @Column({ type: "int8", nullable: true }) guild_id?: Snowflake; @Column() @@ -80,8 +80,8 @@ export class ApplicationCommand extends BaseClass { @Column({ nullable: true, type: "jsonb" }) contexts?: InteractionContextType[]; - @Column({ default: 0 }) - version: Snowflake; + @Column({ type: "int8", default: "0::bigint" }) + version: Snowflake; // Is this really a snowflake though? "An autoincrementing version identifier updated during substantial record changes" @Column({ default: 0 }) handler?: ApplicationCommandHandlerType; -- cgit 1.5.1