fix async iterator
This commit is contained in:
		
							parent
							
								
									1e53d7d770
								
							
						
					
					
						commit
						5e65673107
					
				
					 3 changed files with 7 additions and 3 deletions
				
			
		|  | @ -251,7 +251,7 @@ client.on('messageCreate', async (msg: Message) => { | |||
|     let buf = 'Roles:' | ||||
|     if (msg.member === undefined) return | ||||
|     for await (const role of msg.member.roles) { | ||||
|       buf += `\n${role.name}` | ||||
|       buf += `\n${role.name === '@everyone' ? 'everyone' : role.name}` | ||||
|     } | ||||
|     msg.reply(buf) | ||||
|   } else if (msg.content === '!timer') { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue