Skip to content

Commit

Permalink
Update DiscordClient.Dispatch.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Lulalaby committed Oct 25, 2023
1 parent 1099bb9 commit 5930880
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions DisCatSharp/Clients/DiscordClient.Dispatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ internal async Task HandleDispatchAsync(GatewayPayload payload)
return;
}

/*await this._payloadReceived.InvokeAsync(this, new(this.ServiceProvider)
{
EventName = payload.EventName,
PayloadObject = dat
}).ConfigureAwait(false);
*/
if ((this.Configuration?.EnableLibraryDeveloperMode ?? false) || (this.Configuration?.EnablePayloadReceivedEvent ?? false))
await this._payloadReceived.InvokeAsync(this, new(this.ServiceProvider)
{
EventName = payload.EventName,
PayloadObject = dat
}).ConfigureAwait(false);

#region Default objects

Expand Down

0 comments on commit 5930880

Please sign in to comment.