Update readme.md

Test

Migrate from Victoria
This commit is contained in:
2024-08-11 15:45:24 +02:00
committed by Myx
parent d72676c7e0
commit 05b7324ecc
21 changed files with 327 additions and 305 deletions
+2 -1
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)