From 3a296fa929470b0dba74ee7cdd4343c03d171916 Mon Sep 17 00:00:00 2001 From: Almeida Date: Mon, 6 Apr 2026 17:48:05 +0100 Subject: [PATCH] fix(User): use Snowflake for DM recipient_id (#1612) Co-authored-by: Claude Opus 4.6 (1M context) --- deno/rest/v10/user.ts | 2 +- deno/rest/v9/user.ts | 2 +- rest/v10/user.ts | 2 +- rest/v9/user.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/deno/rest/v10/user.ts b/deno/rest/v10/user.ts index e15572c8..e3f3da76 100644 --- a/deno/rest/v10/user.ts +++ b/deno/rest/v10/user.ts @@ -101,7 +101,7 @@ export interface RESTPostAPICurrentUserCreateDMChannelJSONBody { /** * The recipient to open a DM channel with */ - recipient_id: string; + recipient_id: Snowflake; } /** diff --git a/deno/rest/v9/user.ts b/deno/rest/v9/user.ts index 7e3e2ef7..e66bfe3c 100644 --- a/deno/rest/v9/user.ts +++ b/deno/rest/v9/user.ts @@ -101,7 +101,7 @@ export interface RESTPostAPICurrentUserCreateDMChannelJSONBody { /** * The recipient to open a DM channel with */ - recipient_id: string; + recipient_id: Snowflake; } /** diff --git a/rest/v10/user.ts b/rest/v10/user.ts index 5bdb6269..5ff12abd 100644 --- a/rest/v10/user.ts +++ b/rest/v10/user.ts @@ -101,7 +101,7 @@ export interface RESTPostAPICurrentUserCreateDMChannelJSONBody { /** * The recipient to open a DM channel with */ - recipient_id: string; + recipient_id: Snowflake; } /** diff --git a/rest/v9/user.ts b/rest/v9/user.ts index fda9634f..ef9a0c92 100644 --- a/rest/v9/user.ts +++ b/rest/v9/user.ts @@ -101,7 +101,7 @@ export interface RESTPostAPICurrentUserCreateDMChannelJSONBody { /** * The recipient to open a DM channel with */ - recipient_id: string; + recipient_id: Snowflake; } /**