🐛 fix Identify ready payload missing users
This commit is contained in:
		
							parent
							
								
									fc5f5f33cb
								
							
						
					
					
						commit
						7c7b10dede
					
				| @ -93,7 +93,9 @@ export async function onIdentify(this: WebSocket, data: Payload) { | |||||||
| 		// @ts-ignore
 | 		// @ts-ignore
 | ||||||
| 		x.channel.recipients = x.channel.recipients?.map((x) => x.user); | 		x.channel.recipients = x.channel.recipients?.map((x) => x.user); | ||||||
| 		//TODO is this needed? check if users in group dm that are not friends are sent in the READY event
 | 		//TODO is this needed? check if users in group dm that are not friends are sent in the READY event
 | ||||||
| 		//users = users.concat(x.channel.recipients);
 | 		users = users.concat( | ||||||
|  | 			x.channel.recipients?.map((x) => x.user) as User[] | ||||||
|  | 		); | ||||||
| 		if (x.channel.isDm()) { | 		if (x.channel.isDm()) { | ||||||
| 			x.channel.recipients = x.channel.recipients!.filter( | 			x.channel.recipients = x.channel.recipients!.filter( | ||||||
| 				(x) => x.id !== this.user_id | 				(x) => x.id !== this.user_id | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Flam3rboy
						Flam3rboy