mirror of
https://github.com/RPCS3/discord-bot.git
synced 2026-07-19 13:54:44 -04:00
[PR #1006] [MERGED] Update game updates result formatting with discord components v2 #1009
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/RPCS3/discord-bot/pull/1006
Author: @13xforever
Created: 8/18/2025
Status: ✅ Merged
Merged: 8/18/2025
Merged by: @13xforever
Base:
master← Head:vnext📝 Commits (3)
8e3ca78update dependenciese1fea75add some savestate checks01c2421use components v2 for game updates📊 Changes
11 files changed (+145 additions, -77 deletions)
View changed files
📝
Clients/CompatApiClient/CompatApiClient.csproj(+1 -1)📝
CompatBot/Commands/Psn.Check.cs(+16 -12)📝
CompatBot/CompatBot.csproj(+5 -5)📝
CompatBot/EventHandlers/LogParsing/LogParser.LogSections.cs(+5 -6)📝
CompatBot/EventHandlers/LogParsing/LogParser.RegexPatterns.cs(+10 -0)📝
CompatBot/Utils/ResultFormatters/LogParserResultFormatter.CurrentSettingsSections.cs(+1 -1)📝
CompatBot/Utils/ResultFormatters/LogParserResultFormatter.GeneralNotesSection.cs(+7 -4)📝
CompatBot/Utils/ResultFormatters/LogParserResultFormatter.WeirdSettingsSection.cs(+15 -5)📝
CompatBot/Utils/ResultFormatters/LogParserResultFormatter.cs(+3 -0)📝
CompatBot/Utils/ResultFormatters/TitlePatchFormatter.cs(+79 -40)📝
Tests/Tests.csproj(+3 -3)📄 Description
Discord has introduced a new message model with composable components.
One benefit of this approach vs current is that it is displayed for all users, even if user has message embeds disabled in the client settings.
The downside of this approach is that formatting options are a bit more limited (no inline fields), and total text length in the message is capped at 4000 characters (which may result in more responses). Also, thumbnails are now zoomed in and cropped instead of being proportionally fit.
To somewhat mitigate the difference, I've changed the formatting and removed the dedicated update titles.
It looks uglier, but it's more functional.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.