Guest User

Untitled

a guest
Feb 16th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. let mut message = poll.description.clone();
  2. message += "\n";
  3. for option in &options {
  4. message += &format!("{}: {}\n", option.token, option.description);
  5. }
  6. let message = ChannelId(poll.channel_id as u64)
  7. .say(message)
  8. .map_err(|e| failure::format_err!("Could not say message: {:?}", e))?;
  9.  
  10. for option in &options {
  11. if let Err(e) = message.react(ReactionType::Unicode(option.token.clone())) {
  12. println!("Could not add poll reaction: {:?}", e);
  13. }
  14. }
Add Comment
Please, Sign In to add comment