mirror of
https://github.com/RPCS3/discord-bot.git
synced 2026-07-19 13:54:44 -04:00
[PR #1004] [MERGED] Fix autocomplete providers for some slash commands #1007
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/1004
Author: @13xforever
Created: 8/6/2025
Status: ✅ Merged
Merged: 8/6/2025
Merged by: @13xforever
Base:
master← Head:vnext📝 Commits (3)
21bad27add more linux kernel stringsa2474f1map ambiguous language codes depending on the game region3ca3c4ffix substring search in autocomplete providers📊 Changes
14 files changed (+492 additions, -88 deletions)
View changed files
📝
.config/dotnet-tools.json(+2 -2)📝
CompatBot/Commands/AutoCompleteProviders/ContentFilterAutoCompleteProvider.cs(+1 -0)📝
CompatBot/Commands/AutoCompleteProviders/ExplainAutoCompleteProvider.cs(+1 -0)📝
CompatBot/Commands/AutoCompleteProviders/InviteAutoCompleteProvider.cs(+1 -0)📝
CompatBot/Commands/AutoCompleteProviders/ProductCodeAutoCompleteProvider.cs(+1 -0)📝
CompatBot/Commands/AutoCompleteProviders/WarningAutoCompleteProvider.cs(+1 -0)➕
CompatBot/Database/Migrations/ThumbnailDb/20250806100313_AddNoCaseCollationForGameTitle.Designer.cs(+303 -0)➕
CompatBot/Database/Migrations/ThumbnailDb/20250806100313_AddNoCaseCollationForGameTitle.cs(+38 -0)📝
CompatBot/Database/Migrations/ThumbnailDb/ThumbnailDbModelSnapshot.cs(+9 -8)📝
CompatBot/Database/Providers/DiscLanguageProvider.cs(+97 -74)📝
CompatBot/Database/ThumbnailDb.cs(+8 -3)📝
CompatBot/Program.cs(+10 -1)📝
CompatBot/Utils/Extensions/BotDbExtensions.cs(+10 -0)📝
CompatBot/Utils/ResultFormatters/LogParserResultFormatter.cs(+10 -0)📄 Description
Some providers are using substring search in sqlite, which was broken due to implementation details and non-obvious behavior both on ef core, and sqlite side.
This makes the search case-insensitive.
Also fixes language code to country flag mapping logic for product code embeds by using region information from the product code.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.