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 Jan 24, 2025
1 parent 0f3b848 commit d76752d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions DisCatSharp/Clients/DiscordClient.Dispatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
namespace DisCatSharp;

/// <summary>
/// Represents a discord Logger.ent.L
/// Represents the dispatch handler.
/// </summary>
public sealed partial class DiscordClient
{
Expand Down Expand Up @@ -645,19 +645,19 @@ internal async Task HandleDispatchAsync(GatewayPayload payload)
gid = (ulong)dat["guild_id"]!;
joinRequestStatusType = Enum.TryParse<JoinRequestStatusType>((string)dat["status"]!, out var rcs) ? rcs : JoinRequestStatusType.Unknown;
joinRequest = DiscordJson.DeserializeObject<DiscordGuildJoinRequest>(dat["request"]!.ToString(), this);
await this.OnGuildJoinRequestCreateAsync(gid, joinRequestStatusType, joinRequest);
await this.OnGuildJoinRequestCreateAsync(gid, joinRequestStatusType, joinRequest).ConfigureAwait(false);
break;
case "guild_join_request_update":
gid = (ulong)dat["guild_id"]!;
joinRequestStatusType = Enum.TryParse<JoinRequestStatusType>((string)dat["status"]!, out var rcu) ? rcu : JoinRequestStatusType.Unknown;
joinRequest = DiscordJson.DeserializeObject<DiscordGuildJoinRequest>(dat["request"]!.ToString(), this);
await this.OnGuildJoinRequestUpdateAsync(gid, joinRequestStatusType, joinRequest);
await this.OnGuildJoinRequestUpdateAsync(gid, joinRequestStatusType, joinRequest).ConfigureAwait(false);
break;
case "guild_join_request_delete":
gid = (ulong)dat["guild_id"]!;
uid = (ulong)dat["user_id"]!;
var requestId = (ulong)dat["id"]!;
await this.OnGuildJoinRequestDeleteAsync(requestId, uid, gid);
await this.OnGuildJoinRequestDeleteAsync(requestId, uid, gid).ConfigureAwait(false);
break;

case "entitlement_create":
Expand Down

0 comments on commit d76752d

Please sign in to comment.