mirror of
https://github.com/discordjs/discord-api-types.git
synced 2026-06-04 18:00:11 +00:00
fix(GatewayPresence): correct type for sent activity objects (#30)
This commit is contained in:
@@ -664,11 +664,16 @@ export interface GatewayUpdatePresence {
|
||||
*/
|
||||
export interface GatewayPresenceUpdateData {
|
||||
since: number | null;
|
||||
activities: GatewayActivity[] | null;
|
||||
activities: GatewayActivityUpdateData[] | null;
|
||||
status: PresenceUpdateStatus;
|
||||
afk: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* https://discord.com/developers/docs/topics/gateway#activity-object-activity-structure
|
||||
*/
|
||||
export type GatewayActivityUpdateData = Pick<GatewayActivity, 'name' | 'type' | 'url'>;
|
||||
|
||||
// #endregion Sendable Payloads
|
||||
|
||||
// #region Shared
|
||||
|
||||
@@ -56,7 +56,7 @@ export enum PresenceUpdateStatus {
|
||||
export type GatewayPresenceClientStatus = Partial<Record<'desktop' | 'mobile' | 'web', PresenceUpdateStatus>>;
|
||||
|
||||
/**
|
||||
* https://discord.com/developers/docs/topics/gateway#activity-object
|
||||
* https://discord.com/developers/docs/topics/gateway#activity-object-activity-structure
|
||||
*/
|
||||
export interface GatewayActivity {
|
||||
name: string;
|
||||
|
||||
Reference in New Issue
Block a user