diff --git a/state/state.go b/state/state.go index 8ea9c22..e6de2c6 100644 --- a/state/state.go +++ b/state/state.go @@ -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 }