We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37599d5 commit b9e4963Copy full SHA for b9e4963
1 file changed
BaroBot/Commands/CategoryCommands/CategoryCommand.cs
@@ -50,7 +50,7 @@ public CategoryCommand(DatabaseService database, DiscordSocketClient client, Env
50
private async Task<Category?> GetCategory(string categoryName, SocketGuild guild)
51
{
52
return await _database.FetchOneAsync<Category>(category =>
53
- string.Equals(category.Name, categoryName, StringComparison.OrdinalIgnoreCase) && category.GuildId == guild.Id);
+ category.Name.ToLower() == categoryName.ToLower() && category.GuildId == guild.Id);
54
}
55
56
private async Task<Category?> GetCategory(IRole role, SocketGuild guild)
0 commit comments