Skip to content

Commit

Permalink
fix: remove shardID from activities
Browse files Browse the repository at this point in the history
  • Loading branch information
iShibi committed Feb 12, 2021
1 parent 4e961fc commit 7179689
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/structures/ClientUser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<ActivityOptions>} [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
*/

/**
Expand Down
7 changes: 6 additions & 1 deletion typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7179689

Please sign in to comment.