[PR #1006] [MERGED] Update game updates result formatting with discord components v2 #1009

Closed
opened 2026-02-15 15:57:28 -05:00 by yindo · 0 comments
Owner

📋 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: masterHead: vnext


📝 Commits (3)

  • 8e3ca78 update dependencies
  • e1fea75 add some savestate checks
  • 01c2421 use 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.

## 📋 Pull Request Information **Original PR:** https://github.com/RPCS3/discord-bot/pull/1006 **Author:** [@13xforever](https://github.com/13xforever) **Created:** 8/18/2025 **Status:** ✅ Merged **Merged:** 8/18/2025 **Merged by:** [@13xforever](https://github.com/13xforever) **Base:** `master` ← **Head:** `vnext` --- ### 📝 Commits (3) - [`8e3ca78`](https://github.com/RPCS3/discord-bot/commit/8e3ca783d75dfdb8cec8a668566fb5f27888ad3f) update dependencies - [`e1fea75`](https://github.com/RPCS3/discord-bot/commit/e1fea75c5649aea2c87e87c9335b367fdd921060) add some savestate checks - [`01c2421`](https://github.com/RPCS3/discord-bot/commit/01c24210ce4cfb4467e9f652886568ba2ff4c423) use components v2 for game updates ### 📊 Changes **11 files changed** (+145 additions, -77 deletions) <details> <summary>View changed files</summary> 📝 `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) </details> ### 📄 Description Discord has introduced a [new message model with composable components](https://discord.com/developers/docs/components/using-message-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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 15:57:28 -05:00
yindo closed this issue 2026-02-15 15:57:28 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: RPCS3/discord-bot#1009