Skip to content

fix(Discord): Unfuck Discord rpc#279

Open
IceTank wants to merge 1 commit intolambda-client:1.21.11from
IceTank:fix/discord-rpc
Open

fix(Discord): Unfuck Discord rpc#279
IceTank wants to merge 1 commit intolambda-client:1.21.11from
IceTank:fix/discord-rpc

Conversation

@IceTank
Copy link
Copy Markdown
Contributor

@IceTank IceTank commented Mar 25, 2026

This change lazy loads the Discord integration dependency, removing around a 10-second unavoidable delay when starting the game.
This also fixes the module starting the Discord RPC integration even if the module is disabled.

@github-project-automation github-project-automation bot moved this to Backlog in Kanban Mar 25, 2026
@beanbag44 beanbag44 self-requested a review March 25, 2026 19:05
private val line2Right by setting("Line 2 Right", LineInfo.Fps)

val rpc = KDiscordIPC(Lambda.APP_ID, scope = EventFlow.lambdaScope)
var rpc: KDiscordIPC? = null
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could this be replaced with a lazy {}?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

3 participants