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

Cleanup Lavalink4Net.DSharpPlus. #138

Merged
merged 7 commits into from
Jan 23, 2024
Merged

Conversation

OoLunar
Copy link
Contributor

@OoLunar OoLunar commented Jan 23, 2024

Summary

  • Turn VoiceStateUpdatePayload into a readonly struct as it's lifetime is short and it's only referenced once
  • Update DSharpPlus to 4.4.6
  • Rename DSharpUtils to DSharpPlusUtilities
  • Remove DSharpPlusUtilities.GetWebSocketClient in lieu of DiscordClient.SendPayloadAsync<T>(GatewayOpCode opCode, T data)
  • Update GetChannelUsersAsync to catch any DiscordException instead of just UnauthorizedException.
  • Update GetChannelUsersAsync to iterate once over DiscordChannel.Users
  • Remove premature optimization on GetClientForGuild
  • Formatting
  • Documentation

Notes

All changes are entirely untested.

OoLunar and others added 7 commits January 23, 2024 01:43
- Rename `DSharpUtils` to `DSharpPlusUtilities`
- Remove `DSharpPlusUtilities.GetWebSocketClient` in lieu of `DiscordClient.SendPayloadAsync<T>(GatewayOpCode opCode, T data)`
- Update `GetChannelUsersAsync` to catch any `DiscordException` instead of just `UnauthorizedException`.
- Update `GetChannelUsersAsync` to iterate once over `DiscordChannel.Users`
- Remove premature optimization on `GetClientForGuild`
- Formatting
- Documentation
@angelobreuer angelobreuer added the enhancement New feature or request label Jan 23, 2024
@angelobreuer
Copy link
Owner

Linking conversation: https://discord.com/channels/1082302532421943407/1145034948286353488/1199226292701245480 (Lavalink Support Server)

@angelobreuer
Copy link
Owner

Thank you 🚀

@angelobreuer angelobreuer merged commit bd80940 into angelobreuer:dev Jan 23, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants