State: fix case where Role would return nil error, even though no role was found
This commit is contained in:
parent
1bec57523d
commit
6dabffb46c
|
@ -636,6 +636,10 @@ func (s *State) Role(guildID discord.GuildID, roleID discord.RoleID) (*discord.R
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if role == nil {
|
||||||
|
return nil, ErrStoreNotFound
|
||||||
|
}
|
||||||
|
|
||||||
return role, nil
|
return role, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue