Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Oct 7, 2022

Conversation

nponsard
Copy link
Contributor

@nponsard nponsard commented Sep 2, 2022

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.

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.
@FedorLap2006 FedorLap2006 added the fix Pull requests and issues related to bug fixes and structural inconsistencies label Sep 11, 2022
@FedorLap2006 FedorLap2006 merged commit bd58eb7 into bwmarrin:master Oct 7, 2022
LWCoder pushed a commit to AtTheTavern/discordgo that referenced this pull request Apr 11, 2023
…n#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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Pull requests and issues related to bug fixes and structural inconsistencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants