Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let mut message = poll.description.clone();
- message += "\n";
- for option in &options {
- message += &format!("{}: {}\n", option.token, option.description);
- }
- let message = ChannelId(poll.channel_id as u64)
- .say(message)
- .map_err(|e| failure::format_err!("Could not say message: {:?}", e))?;
- for option in &options {
- if let Err(e) = message.react(ReactionType::Unicode(option.token.clone())) {
- println!("Could not add poll reaction: {:?}", e);
- }
- }
Add Comment
Please, Sign In to add comment