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

discord: Added SelectedValue fields for Channel, Mentionable, User and Role SelectComponents #455

Merged
merged 8 commits into from
Oct 31, 2024

Conversation

CosmicPredator
Copy link
Contributor

@CosmicPredator CosmicPredator commented Oct 24, 2024

This PR adds the following fields to ChannelSelectComponent, MentionableSelectComponent and RoleSelectComponent,

  • SelectedRoles for RoleSelectComponent.
  • SelectedChannels for ChannelSelectComponent.
  • SelectedMentions for MentionableSelectComponent.
  • SelectedUsers for UserSelectComponent.

All the fields will take in the slice of ID's of their kind and populates the SelectComponent beforehand.

Note

SelectedMentions will take in the slice of interface{} and later type-asserted to respective UserID / RoleID.
If wanted to change this implementation, please lmk.

@CosmicPredator CosmicPredator changed the title discord: Added SelectedValue fields for Channel, Mentionable and Role SelectComponents discord: Added SelectedValue fields for Channel, Mentionable, User and Role SelectComponents Oct 24, 2024
discord/component.go Outdated Show resolved Hide resolved
discord/component.go Outdated Show resolved Hide resolved
discord/component.go Outdated Show resolved Hide resolved
discord/component.go Outdated Show resolved Hide resolved
@CosmicPredator
Copy link
Contributor Author

CosmicPredator commented Oct 25, 2024

@diamondburned I guess I updated everything and you are gtg

discord/component.go Outdated Show resolved Hide resolved
discord/component.go Outdated Show resolved Hide resolved
@CosmicPredator
Copy link
Contributor Author

@diamondburned Fixed the requested

@CosmicPredator
Copy link
Contributor Author

@diamondburned Is there anything that needs to be fixed still ??

@diamondburned
Copy link
Owner

Thanks for the bump! I just forgot about this PR for a bit.

@diamondburned diamondburned merged commit c2bbe54 into diamondburned:v3 Oct 31, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants