From a6bddd602a2a79bf1fda9e41294e32f5202afce3 Mon Sep 17 00:00:00 2001 From: Syntle <43820255+SyntleLmao@users.noreply.github.com> Date: Wed, 1 Apr 2020 23:59:57 +0100 Subject: [PATCH 1/2] Added `userID` property to `Presence` class userID property exists in docs but not in typings --- typings/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/typings/index.d.ts b/typings/index.d.ts index ef329b45654c..8043ccc842ec 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -1165,6 +1165,7 @@ declare module 'discord.js' { public readonly member: GuildMember | null; public status: PresenceStatus; public readonly user: User | null; + public userID: string | number; public equals(presence: Presence): boolean; } From 872ec8afd343c8f674008e11ea14a75b52a7ea7d Mon Sep 17 00:00:00 2001 From: SpaceEEC Date: Fri, 3 Apr 2020 11:49:43 +0200 Subject: [PATCH 2/2] fix(Presence): userID should be typed as Snowflake Co-Authored-By: BorgerKing <38166539+RDambrosio016@users.noreply.github.com> --- typings/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typings/index.d.ts b/typings/index.d.ts index 8043ccc842ec..407bf034cbb6 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -1165,7 +1165,7 @@ declare module 'discord.js' { public readonly member: GuildMember | null; public status: PresenceStatus; public readonly user: User | null; - public userID: string | number; + public userID: Snowflake; public equals(presence: Presence): boolean; }