Configuration

Beyond the initial DiscordSocialSettings setup covered in Initialization, Discord Social exposes its runtime events through a dedicated Inspector-friendly component.

Discord Event Triggers #

Heathen.DiscordSocialIntegration.DiscordEventTriggers subscribes to every event DiscordSocialApp raises (~29 in total, covering connection state, relationships, lobbies, voice, and activities) and re-exposes each as a public UnityEvent you can wire up in the Inspector, with no code required. Its custom Editor lets you pick which events to show/wire, so you don’t have to scroll past the ones you don’t need.

Add one DiscordEventTriggers component wherever you want to react to Discord state changes via UnityEvents — for example, refreshing a friends-list UI when a relationship event fires, or updating a call HUD on a voice-state-changed event.

uGUI components #

A set of ready-made uGUI components consume this same event surface directly: DiscordUserProfile, DiscordUserList, DiscordUserGroup(sDisplay), DiscordGuildList, DiscordGuildProfile, SetDiscordUserAvatar, and SetDiscordUserName. Drop these onto UI prefabs and assign the relevant user/guild ID to display live Discord profile data.

Rate This Article!