mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 02:23:31 +01:00
feat(Activity): add missing fields (#4984)
Co-authored-by: Jan <66554238+Vaporox@users.noreply.github.com>
This commit is contained in:
7
typings/index.d.ts
vendored
7
typings/index.d.ts
vendored
@@ -30,17 +30,22 @@ declare module 'discord.js' {
|
||||
constructor(presence: Presence, data?: object);
|
||||
public applicationID: Snowflake | null;
|
||||
public assets: RichPresenceAssets | null;
|
||||
public buttons: string[];
|
||||
public readonly createdAt: Date;
|
||||
public createdTimestamp: number;
|
||||
public details: string | null;
|
||||
public emoji: Emoji | null;
|
||||
public flags: Readonly<ActivityFlags>;
|
||||
public id: string;
|
||||
public name: string;
|
||||
public party: {
|
||||
id: string | null;
|
||||
size: [number, number];
|
||||
} | null;
|
||||
public platform: ActivityPlatform | null;
|
||||
public sessionID: string | null;
|
||||
public state: string | null;
|
||||
public syncID: string | null;
|
||||
public timestamps: {
|
||||
start: Date | null;
|
||||
end: Date | null;
|
||||
@@ -2170,6 +2175,8 @@ declare module 'discord.js' {
|
||||
shardID?: number | readonly number[];
|
||||
}
|
||||
|
||||
type ActivityPlatform = 'desktop' | 'samsung' | 'xbox';
|
||||
|
||||
type ActivityType = 'PLAYING' | 'STREAMING' | 'LISTENING' | 'WATCHING' | 'CUSTOM_STATUS' | 'COMPETING';
|
||||
|
||||
interface AddGuildMemberOptions {
|
||||
|
||||
Reference in New Issue
Block a user