From 7179689f671c4c308f5f939d0af816b9c5b1f415 Mon Sep 17 00:00:00 2001 From: Shubham Parihar Date: Fri, 12 Feb 2021 20:04:14 +0530 Subject: [PATCH] fix: remove shardID from activities --- src/structures/ClientUser.js | 6 +++++- typings/index.d.ts | 7 ++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/structures/ClientUser.js b/src/structures/ClientUser.js index c38c9922590f..e538eba74c80 100644 --- a/src/structures/ClientUser.js +++ b/src/structures/ClientUser.js @@ -95,7 +95,11 @@ class ClientUser extends Structures.get('User') { * @typedef {Object} PresenceData * @property {PresenceStatusData} [status] Status of the user * @property {boolean} [afk] Whether the user is AFK - * @property {Array} [activities] Activity the user is playing + * @property {Object[]} [activities] Activity the user is playing + * @property {string} [activities[].name] Name of the activity + * @property {ActivityType|number} [activities[].type] Type of the activity + * @property {string} [activities[].url] Twitch / YouTube stream URL + * @property {?number|number[]} [shardID] Shard Id(s) to have the activity set on */ /** diff --git a/typings/index.d.ts b/typings/index.d.ts index dfb13af43d93..a72b3b8aa12d 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -3062,7 +3062,12 @@ declare module 'discord.js' { interface PresenceData { status?: PresenceStatusData; afk?: boolean; - activities?: ActivityOptions[]; + activities?: { + name?: string; + type?: ActivityType | number; + url?: string; + }[]; + shardID?: number | number[]; } type PresenceResolvable = Presence | UserResolvable | Snowflake;