[Fix] Client bug (#623)
If you don't delete this property for some reasons after you send a message in a guild, your roles will be removed (client sided) for everyone, this fixes it.
This commit is contained in:
		
							parent
							
								
									896d3672f4
								
							
						
					
					
						commit
						385bdfdff4
					
				| @ -219,7 +219,10 @@ router.post( | ||||
| 				}) | ||||
| 			); | ||||
| 		} | ||||
| 
 | ||||
| 	 | ||||
| 		//Fix for the client bug
 | ||||
| 		delete message.member | ||||
| 		 | ||||
| 		await Promise.all([ | ||||
| 			message.save(), | ||||
| 			emitEvent({ event: "MESSAGE_CREATE", channel_id: channel_id, data: message } as MessageCreateEvent), | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 ImAaronFR
						ImAaronFR