fix(interactions): incorrect call of State.Role in RoleValue (#1237)
The gID parameter was passed to State.Role as roleID and roleID was passed as guildID. This commits inverts the arguments order to fix the issue.
This commit is contained in:
parent
e57064892a
commit
bd58eb717e
1 changed files with 1 additions and 1 deletions
|
@ -472,7 +472,7 @@ func (o ApplicationCommandInteractionDataOption) RoleValue(s *Session, gID strin
|
|||
return &Role{ID: roleID}
|
||||
}
|
||||
|
||||
r, err := s.State.Role(roleID, gID)
|
||||
r, err := s.State.Role(gID, roleID)
|
||||
if err != nil {
|
||||
roles, err := s.GuildRoles(gID)
|
||||
if err == nil {
|
||||
|
|
Loading…
Reference in a new issue