addReaction -> createReaction
This commit is contained in:
		
							parent
							
								
									cdbae2c0be
								
							
						
					
					
						commit
						5557b96997
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -103,7 +103,7 @@ async function CommandDispatcher(msg) {
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        if (response.reaction) {
 | 
					        if (response.reaction) {
 | 
				
			||||||
          msg.addReaction(response.reaction);
 | 
					          msg.createReaction(response.reaction);
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
          try {
 | 
					          try {
 | 
				
			||||||
            const outMessage = await msg.channel.createMessage(
 | 
					            const outMessage = await msg.channel.createMessage(
 | 
				
			||||||
| 
						 | 
					@ -123,7 +123,7 @@ async function CommandDispatcher(msg) {
 | 
				
			||||||
            if (response.addReactions) {
 | 
					            if (response.addReactions) {
 | 
				
			||||||
              for (const index in response.addReactions) {
 | 
					              for (const index in response.addReactions) {
 | 
				
			||||||
                const reaction = response.addReactions[index];
 | 
					                const reaction = response.addReactions[index];
 | 
				
			||||||
                await outMessage.addReaction(reaction);
 | 
					                await outMessage.createReaction(reaction);
 | 
				
			||||||
              }
 | 
					              }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
          } catch (err) {
 | 
					          } catch (err) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue