Skip to content

Commit

Permalink
Support custom statuses
Browse files Browse the repository at this point in the history
  • Loading branch information
DonovanDMC committed Aug 11, 2023
1 parent 6f738b4 commit ed954cd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/types/gateway.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export interface Activity {
type: ActivityTypes;
url?: string | null;
}
export interface BotActivity extends Pick<Activity, "name" | "url"> { type: BotActivityTypes; }
export interface BotActivity extends Pick<Activity, "name" | "url" | "state"> {}

export interface ActivityEmoji {
animated?: boolean;
Expand All @@ -229,8 +229,6 @@ export interface ActivityButton {
url: string;
}

export type BotActivityTypes = ActivityTypes.GAME | ActivityTypes.STREAMING | ActivityTypes.LISTENING | ActivityTypes.WATCHING | ActivityTypes.COMPETING;

export interface PresenceUpdate {
activities?: Array<Activity>;
client_status: ClientStatus;
Expand Down

0 comments on commit ed954cd

Please sign in to comment.