Yellow-Dog-Man / Resonite-Issues

Issue repository for Resonite.
https://resonite.com
135 stars 2 forks source link

Discord Invite to Game Session #1210

Open Xlinka opened 8 months ago

Xlinka commented 8 months ago

Is your feature request related to a problem? Please describe.

Players currently face a multi-step process to invite friends to join a game session: they must generate a 'lnl:// join' link or a session link, paste it in Discord, or navigate the in-game world browser to find the session. This process interrupts the gaming experience and can be frustrating, especially during live gameplay where quick invites are necessary.

Describe the solution you'd like

I would like to see an integrated 'Discord Invite to Session' button within the discord similar to other platforms where discord will generate a similar event card for the game session with a join button.

Describe alternatives you've considered

An alternative could be enhancing the in-game world browser to support direct invites to friends via a contextual menu or a 'share session' option. Another possibility is to create an in-game overlay that can interface with Discord's overlay, allowing for invites to be sent from within the game without the Discord app in focus.

Additional Context

No response

EmergencyTemporalShift commented 8 months ago

Custom URL schemes would help with that, does discord support those like browsers do? Where you can click a link and open a steam game?

Frooxius commented 8 months ago

We wouldn't be using custom URL schemes for this. Discord has a specific API for this that this would implement.

Frooxius commented 8 months ago

@ProbablePrime Would you mind if I steal this possibly? This could be useful for the Blood On The Clocktower games that are held every Saturday.

ProbablePrime commented 8 months ago

@Frooxius If you'd like to sure go for it!

I have some old code that's available for reference here: https://github.com/Yellow-Dog-Man/FrooxEngine/blob/7dacc236d68872477e26c003f0273b872a210d68/FrooxEngine/Interfacing/DiscordConnector.cs

That has some of the invite features, they didn't quite work but it might help you.