-
Notifications
You must be signed in to change notification settings - Fork 98
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
feat: new selects, bugfixes, voice fix #209
Conversation
In this case, @message contains a Hash instead of a Message, preventing to call the .components method on it. So we instantiate a Message object if it is a Hash.
+ string_select (old select_menu) + user_select + role_select + mentionable_select + channel_select
Was used as a debugging tool to see why the Webhook#update test was failing in Ruby 3+
+ update_webhook(**data) will solve the problem in Ruby 3+ + The addition of "if data.key?(:channel)" fixes a bug also present in Ruby 2.7
Currently, it is impossible to access more than the first 1000 bans in the list because of these missing arguments. https://discord.com/developers/docs/resources/guild#get-guild-bans
…multiple embeds Issues shardlab#132
While passing the emoji in the request in the same way as it is done in Channel.delete_all_emoji_reactions
# Add SSRC | ||
discovery_packet += [@ssrc].pack('N') | ||
|
||
# Add 66 zeroes so the packet is 74 bytes long | ||
discovery_packet += "\0" * 66 |
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.
This line would be removed if using the suggestion above
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, small notes and I'd like feedback from some other contributors on whether or not they agree with my opinion that the select events should inherit a common base event type. @Daniel-Worrall @PanisSupraOmnia
Thanks a lot! I really appreciate the effort that went into all these changes. Sorry that it took so long to get around to the review |
No worries, I did the best I could, and in the meantime most of my bots were running on a branch of my fork with all these changes. It's easier if it's directly on the real "main" branch, but I was in no hurry personally 🤣 |
Summary
Fixes the problem of the change in IP Discovery
(Based on PR #194)
Fixed
Fix #208