Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Ground Controller Lvl 1
Message 1 of 1

Problems with reactions

I am novice in this, I am having serious problems to add a help message and answer the reactions, I am not able to find a way to join the lines:

 

if(message.content == (prefix + 'arma')){
  message.channel.send('**Lista de armas con sus habilidades**\n```\n'+
  '-> '+prefix+'👆arco largo\n'+
  '-> '+prefix+'🚺nodachi\n```\n\n');
and add these lines with the reactions. I am not able to find the way :(
message.react('🚺').then(() => message.react('👆'));
const filter = (reaction, user) => {
        return ['🚺','👆',].includes(reaction.emoji.name) && user.id === message.author.id;
      };
      
      message.awaitReactions(filter, { max: 1, time: 60000, errors: ['time'] })
        .then(collected => {
          const reaction = collected.first();
      
          if (reaction.emoji.name === '🚺') {
            message.reply('chik.');
          } else 
          if (reaction.emoji.name === '👆'){
            message.reply('arriba');
          }
        })
        .catch(collected => {
          message.reply('ZzZzZzZZzzzZz');
        });
 
Thanks for your help