Skip to content

Support usage from within Discord #369

@Bios-Marcel

Description

@Bios-Marcel

I think it'd be interesting to be usable as a Discord activity. Discord activities are easy for everyone to use and improve the games discoverability.

It's a hard requirement not to be bound to Discord though. Everything needs to function without it.
This means, we should avoid relying on their SDK or anything like that. Everything must be losely coupled.

AFAIK right now there are 2 issues.

  • The inline scripts need to be downloaded scripts instead, as per discord security policy ... god knows why
  • Inline event handlers need to be moved into the JS code
  • The websocket URL needs to be aware of the proxy. (iframe start location can be used)
  • Session management needs to be integrated somehow.
  • Disable clients per ip setting
  • Solve Ultrawide support #308

    This happens quite often on discord, due to the layout when playing without fullscreen

Session Management

For this we need to use the instanceid discord provides: https://discord.com/developers/docs/activities/development-guides#using-instanceid

We need to make sure people at least automatically join the instance or can see them even if they are private. That way, we only need to make slight changes to the API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions