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