mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-12-02 01:29:47 +00:00
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 a new issue