Packages@robojs/mock
StateSyncPayload
Interface: StateSyncPayload
Full state sync payload sent on connection
Properties
| Property | Type | Description |
|---|---|---|
activity? | { application_id: string; auth_scopes: string[]; auth_state: "UNAUTHENTICATED" | "AUTHENTICATED"; channel_id: null | string; devtools_auth_mode: "auto_approve" | "auto_deny" | "manual"; frame_id: string; guild_id: null | string; iframe_url: string; instance_id: string; launch_url: string; proxy_origin: string; query_params: Record<string, string>; ready_emitted: boolean; sdk_shim_enabled: boolean; } | Active Activity state (if any) |
activity.application_id | string | - |
activity.auth_scopes? | string[] | - |
activity.auth_state | "UNAUTHENTICATED" | "AUTHENTICATED" | - |
activity.channel_id | null | string | - |
activity.devtools_auth_mode? | "auto_approve" | "auto_deny" | "manual" | - |
activity.frame_id | string | - |
activity.guild_id | null | string | - |
activity.iframe_url? | string | - |
activity.instance_id | string | - |
activity.launch_url | string | - |
activity.proxy_origin? | string | - |
activity.query_params | Record<string, string> | - |
activity.ready_emitted | boolean | - |
activity.sdk_shim_enabled? | boolean | - |
channels | StageChannel[] | - |
commands | StageApplicationCommand[] | - |
currentUser? | StageUser | - |
guilds | StageGuild[] | - |
members | StageMember[] | - |
messages | Record<string, StageMessage[]> | - |
proxy? | { origin_template: string; port: number; running: boolean; } | Activity proxy status (if proxy server is running) |
proxy.origin_template | string | - |
proxy.port | number | - |
proxy.running | boolean | - |
roles | StageRole[] | - |
session | { bot: null | StageUser; createdAt: number; id: string; } | - |
session.bot | null | StageUser | - |
session.createdAt | number | - |
session.id | string | - |
users | StageUser[] | - |
voice_states | StageVoiceState[] | - |
