🐛 Make <Member>.edit check channel type more precisely
This commit is contained in:
		
							parent
							
								
									9c5aea1ef8
								
							
						
					
					
						commit
						064c3a6d76
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -88,7 +88,7 @@ export class Member extends SnowflakeBase { | |||
|       deaf: data.deaf, | ||||
|       mute: data.mute, | ||||
|       channel_id: | ||||
|         typeof data.channel === 'string' ? data.channel : data.channel?.id | ||||
|         data.channel instanceof VoiceChannel ? data.channel.id : data.channel | ||||
|     } | ||||
| 
 | ||||
|     const res = await this.client.rest.patch( | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue