Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Very long addition of reactions #116

Open
hiop opened this issue Dec 16, 2017 · 0 comments
Open

Very long addition of reactions #116

hiop opened this issue Dec 16, 2017 · 0 comments

Comments

@hiop
Copy link

hiop commented Dec 16, 2017

Problem

try

client.Dispatcher.on(Events.MESSAGE_CREATE, e => {
     newMessage = client.Messages.get(e.message.id);
     newMessage.addReaction(REACTIONS[DOWN_ACTION]);
     newMessage.addReaction(REACTIONS[RIGHT_ACTION]);
     newMessage.addReaction(REACTIONS[BACK_ACTION]);
     newMessage.addReaction(REACTIONS[LEFT_ACTION]);
});

another try with chain

client.Dispatcher.on(Events.MESSAGE_CREATE, e => {
  var msgid = e.message.id;
   client.Messages.get(msgid).addReaction(REACTIONS[DOWN_ACTION]).then( (result) =>{
          client.Messages.get(msgid).addReaction(REACTIONS[RIGHT_ACTION]).then( (result) => .... )
   })
});

one by one slowly added, maybe there is a way to send all at once? or faster?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant