Make a test command
This commit is contained in:
		
							parent
							
								
									9e6d2c1047
								
							
						
					
					
						commit
						315fd0d0da
					
				
					 1 changed files with 11 additions and 0 deletions
				
			
		|  | @ -112,6 +112,17 @@ client.on('messageCreate', async (msg: Message) => { | ||||||
|     } else { |     } else { | ||||||
|       msg.channel.send('Failed...') |       msg.channel.send('Failed...') | ||||||
|     } |     } | ||||||
|  |   } else if (msg.content === '!react') { | ||||||
|  |     msg.addReaction('🤔') | ||||||
|  |   } | ||||||
|  | }) | ||||||
|  | 
 | ||||||
|  | client.on('messageReactionRemove', (reaction, user) => { | ||||||
|  |   const msg = reaction.message | ||||||
|  | 
 | ||||||
|  |   // eslint-disable-next-line @typescript-eslint/strict-boolean-expressions
 | ||||||
|  |   if (reaction.me && reaction.emoji.getEmojiString === '🤔') { | ||||||
|  |     msg.removeReaction(reaction.emoji) | ||||||
|   } |   } | ||||||
| }) | }) | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue