mirror of
				https://github.com/keanuplayz/TravBot-v3.git
				synced 2024-08-15 02:33:12 +00:00 
			
		
		
		
	Fixed userFlags
This commit is contained in:
		
							parent
							
								
									9816298f55
								
							
						
					
					
						commit
						6744faa6e6
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -100,7 +100,8 @@ export default new Command({ | |||
| 				.sort((a: { position: number; }, b: { position: number; }) => b.position - a.position) | ||||
| 				.map((role: { toString: () => any; }) => role.toString()) | ||||
| 				.slice(0, -1); | ||||
| 			const userFlags = member.permissions.toArray(); | ||||
| 			// @ts-ignore - Discord.js' typings seem to be outdated here. According to their v12 docs, it's User.fetchFlags() instead of User.flags.
 | ||||
| 			const userFlags = (await member.user.fetchFlags() as UserFlags).toArray(); | ||||
| 
 | ||||
| 			const embed = new MessageEmbed() | ||||
| 				.setThumbnail(member.user.displayAvatarURL({ dynamic: true, size: 512 })) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue