types(Presence): fix ActivityOptions#type and Activity#id types (#6696)

This commit is contained in:
Rodry
2021-09-28 17:57:09 +01:00
committed by GitHub
parent da3ae4854e
commit fe9500538e

4
typings/index.d.ts vendored
View File

@@ -146,7 +146,7 @@ export class Activity {
public details: string | null; public details: string | null;
public emoji: Emoji | null; public emoji: Emoji | null;
public flags: Readonly<ActivityFlags>; public flags: Readonly<ActivityFlags>;
public id: Snowflake; public id: string;
public name: string; public name: string;
public party: { public party: {
id: string | null; id: string | null;
@@ -2863,7 +2863,7 @@ export type ActivitiesOptions = Omit<ActivityOptions, 'shardId'>;
export interface ActivityOptions { export interface ActivityOptions {
name?: string; name?: string;
url?: string; url?: string;
type?: ActivityType | number; type?: Exclude<ActivityType, 'CUSTOM'> | Exclude<ActivityTypes, ActivityTypes.CUSTOM>;
shardId?: number | readonly number[]; shardId?: number | readonly number[];
} }