Small fix

This commit is contained in:
Myx
2024-08-11 16:03:42 +02:00
parent 05b7324ecc
commit 34375f52bd
4 changed files with 14 additions and 14 deletions

View File

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