![]() |
Dissonity
Unity SDK for Discord activities
|
Public Member Functions | |
| Type | GetRequestType () |
| Type | GetResponseType () |
Properties | |
| long | ClientId [get] |
| Your application id. https://discord.com/developers/applications. | |
| string[] | OauthScopes [get] |
| The OAuth2 scopes your app needs. https://discord.com/developers/docs/topics/oauth2. | |
| string | TokenRequestPath [get] |
| Path where your backend exchanges an authorization code for an access token. | |
| virtual bool | DisableConsoleLogOverride = true [get] |
| https://discord.com/developers/docs/activities/development-guides#disabling-logging Defaults to true. | |
| virtual bool | LazyHiRpcLoad = false [get] |
Load the hiRPC module on Api.Initialize, rather than before loading the game. Defaults to false. | |
| virtual bool | DisableDissonityInfoLogs = false [get] |
| Disable information logs. It's recommended to keep logs enabled during testing. | |
| virtual MappingBuilder[] | Mappings = {} [get] |
| Mappings to patch before initialization. https://discord.com/developers/docs/activities/development-guides#using-external-resources. | |
| virtual PatchUrlMappingsConfigBuilder | PatchUrlMappingsConfig [get] |
| Patch url mappings configuration. https://discord.com/developers/docs/activities/development-guides#using-external-resources. | |
| virtual bool | SynchronizeUser = false [get] |
Keep Api.SyncedUser up to date by automatically subscribing to CurrentUserUpdate . | |
| virtual bool | SynchronizeGuildMemberRpc = false [get] |
Keep Api.SyncedGuildMemberRpc up to date by automatically subscribing to CurrentGuildMemberUpdate . | |
| virtual ScreenResolution | DesktopResolution = ScreenResolution.Max [get] |
| How app resolution will be handled on desktop. Defaults to ScreenResolution.Max | |
| virtual ScreenResolution | MobileResolution = ScreenResolution.Max [get] |
| How app resolution will be handled on mobile. Defaults to ScreenResolution.Max | |
| virtual ScreenResolution | BrowserResolution = ScreenResolution.Dynamic [get] |
| How app resolution will be handled in a browser outside of Discord. Defaults to ScreenResolution.Dynamic | |
|
inline |
|
inline |
|
get |
How app resolution will be handled in a browser outside of Discord.
Defaults to ScreenResolution.Dynamic
|
getabstract |
Your application id.
https://discord.com/developers/applications.
|
get |
How app resolution will be handled on desktop.
Defaults to ScreenResolution.Max
|
get |
|
get |
Disable information logs.
It's recommended to keep logs enabled during testing.
|
get |
Load the hiRPC module on Api.Initialize, rather than before loading the game.
Defaults to false.
|
get |
Mappings to patch before initialization.
https://discord.com/developers/docs/activities/development-guides#using-external-resources.
|
get |
How app resolution will be handled on mobile.
Defaults to ScreenResolution.Max
|
getabstract |
The OAuth2 scopes your app needs.
https://discord.com/developers/docs/topics/oauth2.
|
get |
Patch url mappings configuration.
https://discord.com/developers/docs/activities/development-guides#using-external-resources.
|
get |
Keep Api.SyncedGuildMemberRpc up to date by automatically subscribing to CurrentGuildMemberUpdate .
|
get |
Keep Api.SyncedUser up to date by automatically subscribing to CurrentUserUpdate .
|
getabstract |
Path where your backend exchanges an authorization code for an access token.