Skip to content

feat(RPC): Add StatusDisplay Option Integration#5584

Open
SuperCater wants to merge 3 commits intobloxstraplabs:mainfrom
SuperCater:statusdisplay-support
Open

feat(RPC): Add StatusDisplay Option Integration#5584
SuperCater wants to merge 3 commits intobloxstraplabs:mainfrom
SuperCater:statusdisplay-support

Conversation

@SuperCater
Copy link
Copy Markdown

Discord recently added the ability to select what text to display in a users status. This PR adds the ability to change that in Bloxstrap settings to show either roblox or the actual roblox game name.

I'm not too fond of the way i went about handling the front end selection options. I ended up creating a cloned enum using attributes. I added examples in the name to make it clearer.

image image 2025-07-28-17-06-11594

@nexpid
Copy link
Copy Markdown
Contributor

nexpid commented Aug 2, 2025

could also be implemented to BloxstrapRPC to override the user's choice for this

}

public IEnumerable<DiscordRPCStatusDisplay> DiscordActivityStatusDisplayTypes { get; } =
Enum.GetValues(typeof(DiscordRPCStatusDisplay))
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.

Enum.GetValues<DiscordRPCStatusDisplay>()
also put this all on one line plz

public enum DiscordRPCStatusDisplay
{
[EnumName(FromTranslation = "Enums.DiscordRPCStatusDisplay.Name")]
Name = StatusDisplayType.Name,
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.

Dont set the values to whatever StatusDisplayType has them set to.

_currentPresence = new DiscordRPC.RichPresence
{
Details = universeName,
StatusDisplay = (StatusDisplayType)App.Settings.Prop.RichPresenceStatusDisplayType,
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.

Create a DiscordRPCStatusDisplayEx class and create an extension function that converts from DiscordRPCStatusDisplay to StatusDisplayType.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants