Skip to content

Commit

Permalink
use EqualFold
Browse files Browse the repository at this point in the history
  • Loading branch information
IAmJSD committed Jul 10, 2020
1 parent 9797add commit 92a0d61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transformers.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func RoleTransformer(ctx *Context, Arg string) (role interface{}, err error) {
if id == nil {
// Try searching guild roles.
for _, role = range roles {
if strings.ToLower(role.(*disgord.Role).Name) == strings.ToLower(Arg) {
if strings.EqualFold(role.(*disgord.Role).Name, Arg) {
// This is the same role.
err = nil
return
Expand Down

0 comments on commit 92a0d61

Please sign in to comment.