#boycottEslint xD
This commit is contained in:
		
							parent
							
								
									2fbd6c99fc
								
							
						
					
					
						commit
						e25e1d34c1
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -8,6 +8,7 @@ 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
 | ||||
|  | @ -15,6 +16,7 @@ export const inviteDelete: GatewayEventHandler = async ( | |||
| 
 | ||||
|   const cachedInvite = await guild.invites.get(d.code) | ||||
|   const cachedChannel = await gateway.client.channels.get(d.channel_id) | ||||
|   // @eslint-disable-next-line @typescript-eslint/no-non-null-assertion
 | ||||
|   const cachedGuild = await gateway.client.guilds.get(d.guild_id!) | ||||
| 
 | ||||
|   // TODO(DjDeveloperr): Make it support self-bots and make Guild not always defined
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue