From 2fbd6c99fcf5890ad9d9e5154823911dfdb9bdba Mon Sep 17 00:00:00 2001 From: CyberKnight007 Date: Wed, 2 Dec 2020 12:59:13 +0530 Subject: [PATCH] feat(invite gateway events) --- src/gateway/handlers/inviteDelete.ts | 1 - src/managers/invites.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gateway/handlers/inviteDelete.ts b/src/gateway/handlers/inviteDelete.ts index ad3bd8c..e1e38c8 100644 --- a/src/gateway/handlers/inviteDelete.ts +++ b/src/gateway/handlers/inviteDelete.ts @@ -8,7 +8,6 @@ export const inviteDelete: GatewayEventHandler = async ( gateway: Gateway, d: InviteDeletePayload ) => { - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion const guild: Guild | undefined = await gateway.client.guilds.get(d.guild_id!) // Weird case, shouldn't happen diff --git a/src/managers/invites.ts b/src/managers/invites.ts index 4a58755..6af3896 100644 --- a/src/managers/invites.ts +++ b/src/managers/invites.ts @@ -19,7 +19,7 @@ export class InviteManager extends BaseManager { return new Invite(this.client, raw) } - async fetch(id: string): Promise { + async fetch(id: string): Promise { return await new Promise((resolve, reject) => { this.client.rest .get(GUILD_INVITES(this.guild.id))