discordgo
discordgo copied to clipboard
fix(interactions): incorrect call of State.Role in RoleValue()
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.