feat: add type column to dm_messages for system message support

Adds a `type` column (TEXT NOT NULL DEFAULT 'user') to the dm_messages
table via schema, migration, and type definition. Updates
buildDmMessageWithUser and the inline replyTo builder in the GET
messages handler to include the field in all DM message responses.
This commit is contained in:
Jannis Braun
2026-03-27 05:30:42 +01:00
parent c5c7ab571a
commit 56e8fc8795
4 changed files with 10 additions and 0 deletions
+1
View File
@@ -281,6 +281,7 @@ export interface DmMessage {
dmChannelId: string;
userId: string;
content: string | null;
type?: 'user' | 'system';
createdAt: number;
// Compatibility fields
channelId?: string;