WhelanB / RoR2-Discord-RP

Risk of Rain 2 mod to introduce support for Discord Rich Presence
https://thunderstore.io/package/WhelanB/DiscordRichPresence/
2 stars 4 forks source link

Add Privacy Level command and better tidy up #1

Closed WhelanB closed 5 years ago

WhelanB commented 5 years ago

Privacy levels are now defined by the PrivacyLevel

enum PrivacyLevel { Disabled = 0, Presence = 1, Join = 2 }

When the current privacy level is set to "Disabled", no presence is broadcast. When set to "Presence" or higher, lobby and run state is broadcast. When set to "Join", lobby data is included and invites/ask to joins are enabled.

Toggled via command "discord_privacy_level" in the ROR2 command line (ctrl+alt+')

Added better clean-up of hooks if Discord fails to connect