-
Notifications
You must be signed in to change notification settings - Fork 99
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
Add tags to role model #230
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error in returned type according to documentation (String instead of Integer)
Co-authored-by: Dakurei <[email protected]>
Co-authored-by: Dakurei <[email protected]>
Co-authored-by: Dakurei <[email protected]>
Thanks for review @Dakurei. All suggestions were applied |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Personally, it looks fine to me, I don't have access to roles with "integration_id", "subscription_listing_id", "available_for_purchase" and "guild_connections" tags to check absolutely everything in terms of the content returned, but there's no reason for any problems 👍
I'll pass the baton to anyone who wants to check this out in more detail !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thank you both.
Cool, thanks |
Summary
I added a wrapper class for the Discord role's tags and added the tags field to the role model as it wasn't possible to access the role tags data (e.g. role's bot ID) while using the server role created/updated/deleted gateway event payload.
Added
Discordrb::Role::Tags
classChanged
Discordrb::Role#tags
attribute