Skip to content

Commit b9e4963

Browse files
buildbuild
authored andcommitted
SQL is fun
1 parent 37599d5 commit b9e4963

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

BaroBot/Commands/CategoryCommands/CategoryCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public CategoryCommand(DatabaseService database, DiscordSocketClient client, Env
5050
private async Task<Category?> GetCategory(string categoryName, SocketGuild guild)
5151
{
5252
return await _database.FetchOneAsync<Category>(category =>
53-
string.Equals(category.Name, categoryName, StringComparison.OrdinalIgnoreCase) && category.GuildId == guild.Id);
53+
category.Name.ToLower() == categoryName.ToLower() && category.GuildId == guild.Id);
5454
}
5555

5656
private async Task<Category?> GetCategory(IRole role, SocketGuild guild)

0 commit comments

Comments
 (0)