overlayed icon indicating copy to clipboard operation
overlayed copied to clipboard

Add new RPC methods

Open Hacksore opened this issue 1 year ago • 1 comments

No idea how to use this yet 😂

https://github.com/user-attachments/assets/69465555-8d8f-42ba-92ae-f553b2d5fbb4

New Commands

  • PLAY_SOUNDBOARD_SOUND - Play a soundboard sound from a guild or the global ones
  • GET_SOUNDBOARD_SOUNDS - Requests discord to send you all the guild soundboard sounds

New Events

  • NOTIFICATION_CREATE - sent when the you get a message that tags your or a dm
  • VIDEO_STATE_UPDATE - not working or sure if it's real
  • SCREENSHARE_STATE_UPDATE - not working or sure if it's real

Added oauth scope

In order to use the soundboard and sub to notifications you need to expand the oauth scopes to:

"guilds",
"rpc.notifications.read",

Hacksore avatar Jul 28 '24 22:07 Hacksore

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
overlayed ❌ Failed (Inspect) Aug 31, 2024 5:31pm

vercel[bot] avatar Jul 28 '24 22:07 vercel[bot]

Thank you for this PR, it has been really helpful. How did you figure out that the name of the command for the soundboard was PLAY_SOUNDBOARD_SOUND?

Just in case someone has trouble with permissions for PLAY_SOUNDBOARD_SOUND, the scope needed should be 'rpc.voice.write'. The Discord doc doesn't mention soundboard for this scope, but the message on the OAuth popup clearly says it gives access to the soundboard.

Kako38 avatar Aug 20 '24 03:08 Kako38

Hey @Kako38

I had found @spdermn02 fork for discord-rpc (https://github.com/spdermn02/RPC/commit/23fe6fd0f78013bfd8e7ae4957f6c9f2a84daf84) which he found out the new actions from the stream deck discord plugin.

Seems like they were added specifically for the stream deck 😂.

Hacksore avatar Aug 20 '24 12:08 Hacksore

Going to let this land on main but disabled. Once we get to a point where we can find a good use-case for a soundboard we can add this.

The quick napkin sketch is probably like the ping menu from league of legends.

The vibe: image

actual ping menu in lol: image

Hacksore avatar Aug 31 '24 17:08 Hacksore