mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 19:13:31 +01:00
types(Presence): fix ActivityOptions#type and Activity#id types (#6696)
This commit is contained in:
4
typings/index.d.ts
vendored
4
typings/index.d.ts
vendored
@@ -146,7 +146,7 @@ export class Activity {
|
||||
public details: string | null;
|
||||
public emoji: Emoji | null;
|
||||
public flags: Readonly<ActivityFlags>;
|
||||
public id: Snowflake;
|
||||
public id: string;
|
||||
public name: string;
|
||||
public party: {
|
||||
id: string | null;
|
||||
@@ -2863,7 +2863,7 @@ export type ActivitiesOptions = Omit<ActivityOptions, 'shardId'>;
|
||||
export interface ActivityOptions {
|
||||
name?: string;
|
||||
url?: string;
|
||||
type?: ActivityType | number;
|
||||
type?: Exclude<ActivityType, 'CUSTOM'> | Exclude<ActivityTypes, ActivityTypes.CUSTOM>;
|
||||
shardId?: number | readonly number[];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user