Preview environment

enum RPCCommands

export declare enum RPCCommands

See also: https://discord.com/developers/docs/topics/rpc#commands-and-events-rpc-commands

Members

AcceptActivityInvite = "ACCEPT_ACTIVITY_INVITE"

ActivityInviteUser = "ACTIVITY_INVITE_USER"

Authenticate = "AUTHENTICATE"

Used to authenticate an existing client with your app

Authorize = "AUTHORIZE"

Used to authorize a new client with your app

BraintreePopupBridgeCallback = "BRAINTREE_POPUP_BRIDGE_CALLBACK"

BrowserHandoff = "BROWSER_HANDOFF"

CloseActivityJoinRequest = "CLOSE_ACTIVITY_JOIN_REQUEST"

used to reject a Rich Presence Ask to Join request the documented similarly named command CLOSE_ACTIVITY_REQUEST does not exist, but CLOSE_ACTIVITY_JOIN_REQUEST does

ConnectionsCallback = "CONNECTIONS_CALLBACK"

CreateChannelInvite = "CREATE_CHANNEL_INVITE"

Dispatch = "DISPATCH"

Event dispatch

GetApplicationTicket = "GET_APPLICATION_TICKET"

GetChannel = "GET_CHANNEL"

Used to retrieve channel information from the client

GetChannels = "GET_CHANNELS"

Used to retrieve a list of channels for a guild from the client

GetEntitlements = "GET_ENTITLEMENTS"

GetEntitlementTicket = "GET_ENTITLEMENT_TICKET"

GetGuild = "GET_GUILD"

Used to retrieve guild information from the client

GetGuilds = "GET_GUILDS"

Used to retrieve a list of guilds from the client

GetImage = "GET_IMAGE"

GetNetworkingConfig = "GET_NETWORKING_CONFIG"

GetRelationships = "GET_RELATIONSHIPS"

GetSelectedVoiceChannel = "GET_SELECTED_VOICE_CHANNEL"

Used to get the current voice channel the client is in

GetSkus = "GET_SKUS"

GetUser = "GET_USER"

GetVoiceSettings = "GET_VOICE_SETTINGS"

Used to retrieve the client's voice settings

GiftCodeBrowser = "GIFT_CODE_BROWSER"

GuildTemplateBrowser = "GUILD_TEMPLATE_BROWSER"

InviteBrowser = "INVITE_BROWSER"

NetworkingCreateToken = "NETWORKING_CREATE_TOKEN"

NetworkingPeerMetrics = "NETWORKING_PEER_METRICS"

NetworkingSystemMetrics = "NETWORKING_SYSTEM_METRICS"

OpenOverlayActivityInvite = "OPEN_OVERLAY_ACTIVITY_INVITE"

OpenOverlayGuildInvite = "OPEN_OVERLAY_GUILD_INVITE"

OpenOverlayVoiceSettings = "OPEN_OVERLAY_VOICE_SETTINGS"

Overlay = "OVERLAY"

SelectTextChannel = "SELECT_TEXT_CHANNEL"

Used to join or leave a text channel, group dm, or dm

SelectVoiceChannel = "SELECT_VOICE_CHANNEL"

Used to join or leave a voice channel, group dm, or dm

SendActivityJoinInvite = "SEND_ACTIVITY_JOIN_INVITE"

Used to consent to a Rich Presence Ask to Join request

SetActivity = "SET_ACTIVITY"

Used to update a user's Rich Presence

SetCertifiedDevices = "SET_CERTIFIED_DEVICES"

Used to send info about certified hardware devices

SetOverlayLocked = "SET_OVERLAY_LOCKED"

SetUserVoiceSettings = "SET_USER_VOICE_SETTINGS"

Used to change voice settings of users in voice channels

SetUserVoiceSettings2 = "SET_USER_VOICE_SETTINGS_2"

SetVoiceSettings = "SET_VOICE_SETTINGS"

Used to set the client's voice settings

SetVoiceSettings2 = "SET_VOICE_SETTINGS_2"

StartPurchase = "START_PURCHASE"

Subscribe = "SUBSCRIBE"

Used to subscribe to an RPC event

Unsubscribe = "UNSUBSCRIBE"

Used to unsubscribe from an RPC event

ValidateApplication = "VALIDATE_APPLICATION"