mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 18:43:31 +01:00
feat: make changes to PresenceData typings and docs (#5317)
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com>
This commit is contained in:
8
typings/index.d.ts
vendored
8
typings/index.d.ts
vendored
@@ -2189,6 +2189,8 @@ declare module 'discord.js' {
|
||||
|
||||
type ActivityFlagsString = 'INSTANCE' | 'JOIN' | 'SPECTATE' | 'JOIN_REQUEST' | 'SYNC' | 'PLAY';
|
||||
|
||||
type ActivitiesOptions = Omit<ActivityOptions, 'shardID'>;
|
||||
|
||||
interface ActivityOptions {
|
||||
name?: string;
|
||||
url?: string;
|
||||
@@ -3152,11 +3154,7 @@ declare module 'discord.js' {
|
||||
interface PresenceData {
|
||||
status?: PresenceStatusData;
|
||||
afk?: boolean;
|
||||
activity?: {
|
||||
name?: string;
|
||||
type?: ActivityType | number;
|
||||
url?: string;
|
||||
};
|
||||
activities?: ActivitiesOptions[];
|
||||
shardID?: number | number[];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user