feat(gateway:events): remove debug logs
This commit is contained in:
		
							parent
							
								
									dfb99fb6b9
								
							
						
					
					
						commit
						2422866a3b
					
				
					 1 changed files with 3 additions and 4 deletions
				
			
		|  | @ -9,20 +9,19 @@ export const typingStart: GatewayEventHandler = async ( | ||||||
|   d: TypingStartPayload |   d: TypingStartPayload | ||||||
| ) => { | ) => { | ||||||
|   const user = await gateway.client.users.get(d.user_id) |   const user = await gateway.client.users.get(d.user_id) | ||||||
|   if (user === undefined) return console.log('user not cached') |   if (user === undefined) return | ||||||
| 
 | 
 | ||||||
|   // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
 |   // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
 | ||||||
|   const channel = (await gateway.client.channels.get( |   const channel = (await gateway.client.channels.get( | ||||||
|     d.channel_id |     d.channel_id | ||||||
|   )) as TextChannel |   )) as TextChannel | ||||||
|   if (channel === undefined) return console.log(`channel not cached`) |   if (channel === undefined) return | ||||||
| 
 | 
 | ||||||
|   const guild = |   const guild = | ||||||
|     d.guild_id !== undefined |     d.guild_id !== undefined | ||||||
|       ? await gateway.client.guilds.get(d.guild_id) |       ? await gateway.client.guilds.get(d.guild_id) | ||||||
|       : undefined |       : undefined | ||||||
|   if (guild === undefined && d.guild_id !== undefined) |   if (guild === undefined && d.guild_id !== undefined) return | ||||||
|     return console.log('guild not cached') |  | ||||||
| 
 | 
 | ||||||
|   const member = |   const member = | ||||||
|     d.member !== undefined && guild !== undefined |     d.member !== undefined && guild !== undefined | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue