discordgo icon indicating copy to clipboard operation
discordgo copied to clipboard

fix(interactions): incorrect call of State.Role in RoleValue()

Open nponsard opened this issue 1 year ago • 0 comments

If i’m not mistaken, the gID parameter of RoleValue(s *Session, gID string) line 465 of interactions.go corresponds to the guild ID.

The gID parameter was passed to State.Role as roleID and the roleID was passed as guildID. Inverting the arguments should fix the issue.

nponsard avatar Sep 02 '22 10:09 nponsard