-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #167 from NycroV/dev
Update code for latest nightly builds
- Loading branch information
Showing
5 changed files
with
53 additions
and
129 deletions.
There are no files selected for viewing
93 changes: 0 additions & 93 deletions
93
src/Lavalink4NET.DSharpPlus.Nightly/DSharpPlusUtilities.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/Lavalink4NET.DSharpPlus.Nightly/Lavalink4NETInvokeHandlers.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
namespace Lavalink4NET.DSharpPlus; | ||
|
||
using System.Threading.Tasks; | ||
using global::DSharpPlus; | ||
using global::DSharpPlus.EventArgs; | ||
using Lavalink4NET.Clients; | ||
|
||
/// <summary> | ||
/// Forwards event triggers to the Lavalink4NET client wrapper | ||
/// </summary> | ||
internal sealed class Lavalink4NETInvokeHandlers(IDiscordClientWrapper wrapper) : | ||
IEventHandler<GuildDownloadCompletedEventArgs>, | ||
IEventHandler<VoiceServerUpdatedEventArgs>, | ||
IEventHandler<VoiceStateUpdatedEventArgs> | ||
{ | ||
private readonly DiscordClientWrapper wrapper = (DiscordClientWrapper)wrapper; | ||
|
||
public async Task HandleEventAsync(DiscordClient sender, GuildDownloadCompletedEventArgs eventArgs) | ||
=> await wrapper.OnGuildDownloadCompleted(sender, eventArgs); | ||
|
||
public async Task HandleEventAsync(DiscordClient sender, VoiceServerUpdatedEventArgs eventArgs) | ||
=> await wrapper.OnVoiceServerUpdated(sender, eventArgs); | ||
|
||
public async Task HandleEventAsync(DiscordClient sender, VoiceStateUpdatedEventArgs eventArgs) | ||
=> await wrapper.OnVoiceStateUpdated(sender, eventArgs); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters