mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 20:13:30 +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 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[];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user