This commit is contained in:
Sakuhl 2018-01-02 23:23:58 +01:00
parent d807866e40
commit f068779adf

View File

@ -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.to_ascii_lowercase() == prefix.to_ascii_lowercase() {
if guild.prefix.to_lowercase() == prefix.to_lowercase() {
return Ok(Some(guild));
}
}