From f2a8c86dde9008296e38b7e6eeee3a2bd5a37bc1 Mon Sep 17 00:00:00 2001 From: DjDeveloperr Date: Thu, 8 Apr 2021 14:39:44 +0530 Subject: [PATCH] fix ratelimit event --- src/gateway/handlers/mod.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/gateway/handlers/mod.ts b/src/gateway/handlers/mod.ts index 0bb7cb0..1c299f3 100644 --- a/src/gateway/handlers/mod.ts +++ b/src/gateway/handlers/mod.ts @@ -393,7 +393,15 @@ export type ClientEvents = { } ] guildMembersChunked: [guild: Guild, chunks: number] - rateLimit: [data: { method: RequestMethods; url: string; body: any }] + rateLimit: [ + data: { + method: RequestMethods + path: string + global: boolean + timeout: number + limit: number + } + ] inviteDeleteUncached: [invite: PartialInvitePayload] voiceStateRemoveUncached: [data: { guild: Guild; member: Member }] userUpdateUncached: [user: User]