Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 1.47 KB

README.md

File metadata and controls

37 lines (26 loc) · 1.47 KB

Who's Talking

Download count

an ffxiv plogon

See Discord voice activity indicators directly on your party list.

Usage

Install from the in-game plugin installer.

Development

Discord RPC auth flow

See https://discord.com/developers/docs/topics/rpc for details.

  • We make a WebSocket connection to the Discord client
  • Discord sends us a READY event
  • We send an AUTHENTICATE command with our access token
  • Discord echoes back our AUTHENTICATE, with details of the logged-in user
    • there's more complexity here if we aren't yet authorised to use RPC
  • We subscribe to VOICE_CHANNEL_SELECT events
  • We send a GET_SELECTED_VOICE_CHANNEL command, to find out if the user is in voice
  • Discord echoes back our GET_SELECTED_VOICE_CHANNEL, with details of the user's current voice channel
  • If the user is not in a voice channel:
    • We clear Channel
    • We clear AllUsers
      • NB: we also do this if a VOICE_CHANNEL_SELECT event indicates the user is no longer in voice
  • If the user is in a voice channel:
    • We set Channel
    • We recreate AllUsers based on the data from Discord

Licensing and Attribution

This plugin contains some icons from Google Fonts' Material Design icon library, which are utilized in this project under the Apache 2.0 license.