![]() |
Dissonity
Unity SDK for Discord activities
|
Subclass that allows listening to RPC events. More...
Static Public Member Functions | |
| static async Task< DiscordSubscription > | ActivityInstanceParticipantsUpdate (Action< Participant[]> listener) |
| Received when the number of instance participants changes. No scopes required. | |
| static async Task< DiscordSubscription > | ActivityLayoutModeUpdate (Action< LayoutModeType > listener) |
| Received when a user changes the layout mode in the Discord client. No scopes required. | |
| static async Task< DiscordSubscription > | CurrentUserUpdate (Action< User > listener) |
| Received when the current user object changes. Scopes required: identify | |
| static async Task< DiscordSubscription > | CurrentGuildMemberUpdate (long guildId, Action< GuildMemberRpc > listener) |
| Received when the current guild member object changes. Scopes required: identify , guilds.members.read | |
| static async Task< DiscordSubscription > | EntitlementCreate (Action< Entitlement > listener) |
| Received when an entitlement is created for a SKU. No scopes required. | |
| static DiscordSubscription | Error (Action< ErrorEventData > listener) |
| Non-subscription event sent when there is an error, including command responses. No scopes required. | |
| static async Task< DiscordSubscription > | OrientationUpdate (Action< OrientationType > listener) |
| Received when screen orientation changes. No scopes required. | |
| static async Task< DiscordSubscription > | SpeakingStart (long channelId, Action< SpeakingData > listener) |
| Received when a user in a subscribed voice channel speaks. Scopes required: rpc.voice.read | |
| static async Task< DiscordSubscription > | SpeakingStop (long channelId, Action< SpeakingData > listener) |
| Received when a user in a subscribed voice channel stops speaking. Scopes required: rpc.voice.read | |
| static async Task< DiscordSubscription > | ThermalStateUpdate (Action< ThermalStateType > listener) |
| Received when Android or iOS thermal states are surfaced to the Discord mobile app. No scopes required. | |
| static async Task< DiscordSubscription > | VoiceStateUpdate (long channelId, Action< UserVoiceState > listener) |
| Received when a user's voice state changes in a subscribed voice channel (mute, volume, etc). Scopes required: rpc.voice.read | |
| static async Task< DiscordSubscription > | RelationshipUpdate (Action< Relationship > listener) |
| Received when a relationship of the current user is updated. Scopes required: relationships.read relationships.read requires approval from Discord. | |
Subclass that allows listening to RPC events.
|
inlinestatic |
Received when the number of instance participants changes.
No scopes required.
| InvalidOperationException | |
| CommandException |
|
inlinestatic |
Received when a user changes the layout mode in the Discord client.
No scopes required.
| InvalidOperationException | |
| CommandException |
|
inlinestatic |
Received when the current guild member object changes.
Scopes required: identify , guilds.members.read
| InvalidOperationException | |
| CommandException |
|
inlinestatic |
Received when the current user object changes.
Scopes required: identify
| InvalidOperationException | |
| CommandException |
|
inlinestatic |
Received when an entitlement is created for a SKU.
No scopes required.
| InvalidOperationException | |
| CommandException |
|
inlinestatic |
Non-subscription event sent when there is an error, including command responses.
No scopes required.
| InvalidOperationException | |
| CommandException |
|
inlinestatic |
Received when screen orientation changes.
No scopes required.
| InvalidOperationException | |
| CommandException |
|
inlinestatic |
Received when a relationship of the current user is updated.
Scopes required: relationships.read
relationships.read requires approval from Discord.
| InvalidOperationException | |
| CommandException |
|
inlinestatic |
Received when a user in a subscribed voice channel speaks.
Scopes required: rpc.voice.read
| InvalidOperationException | |
| CommandException |
|
inlinestatic |
Received when a user in a subscribed voice channel stops speaking.
Scopes required: rpc.voice.read
| InvalidOperationException | |
| CommandException |
|
inlinestatic |
Received when Android or iOS thermal states are surfaced to the Discord mobile app.
No scopes required.
| InvalidOperationException | |
| CommandException |
|
inlinestatic |
Received when a user's voice state changes in a subscribed voice channel (mute, volume, etc).
Scopes required: rpc.voice.read
| InvalidOperationException | |
| CommandException |