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

feat: new selects, bugfixes, voice fix #209

Merged
merged 16 commits into from
Mar 26, 2023

Conversation

Dakurei
Copy link
Contributor

@Dakurei Dakurei commented Mar 24, 2023

Summary

Fixes the problem of the change in IP Discovery

(Based on PR #194)


Fixed

Fix #208

Dakurei and others added 15 commits March 24, 2023 09:44
  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
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
Copy link
Member

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

Copy link
Member

@swarley swarley left a 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

@swarley swarley merged commit c9cc450 into shardlab:main Mar 26, 2023
@swarley
Copy link
Member

swarley commented Mar 26, 2023

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

@swarley swarley mentioned this pull request Mar 26, 2023
@swarley swarley changed the title Fix broken ip discovery feat: new selects, bugfixes, voice fix Mar 26, 2023
@Dakurei
Copy link
Contributor Author

Dakurei commented Mar 26, 2023

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 🤣

@Dakurei Dakurei deleted the fix_broken_ip_discovery branch March 26, 2023 16:52
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.

Voice is broken
2 participants