Update readme.md

Test

Migrate from Victoria
This commit is contained in:
2024-04-15 00:00:38 +02:00
committed by Myx
parent d72676c7e0
commit 05b7324ecc
21 changed files with 327 additions and 305 deletions

View File

@@ -27,7 +27,8 @@ public class DiscordEventListener(DiscordSocketClient client, IServiceScopeFacto
private async 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)