Ignore case when looking up by prefix
This commit is contained in:
parent
97d6bb6a07
commit
d807866e40
@ -25,7 +25,7 @@ pub fn guild_by_prefix(prefix: &str) -> Result<Option<GuildEntry>, Box<Error>> {
|
||||
let top_100 = guild_leaderboard()?;
|
||||
|
||||
for guild in top_100.data.into_iter() {
|
||||
if guild.prefix == prefix {
|
||||
if guild.prefix.to_ascii_lowercase() == prefix.to_ascii_lowercase() {
|
||||
return Ok(Some(guild));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user