Lavalink4net (#3)

* Update readme.md

Test

Migrate from Victoria

* Small fix

---------

Co-authored-by: Myx <info@azaaxin.com>
This commit is contained in:
2024-08-11 16:06:52 +02:00
committed by GitHub
parent d72676c7e0
commit 9bcebea6b0
22 changed files with 337 additions and 315 deletions

View File

@@ -25,9 +25,10 @@ public class DiscordEventListener(DiscordSocketClient client, IServiceScopeFacto
await Task.CompletedTask;
}
private async Task OnMessageReceivedAsync(SocketMessage arg)
private Task OnMessageReceivedAsync(SocketMessage arg)
{
await Mediator.Publish(new MessageReceivedNotification(arg), _cancellationToken);
_ = Task.Run(() => Mediator.Publish(new MessageReceivedNotification(arg), _cancellationToken), _cancellationToken);
return Task.CompletedTask;
}
private async Task OnSlashCommandRecievedAsync(SocketSlashCommand arg)