PLM3TWIMCLF3BAVUOUKBS2LIGLXHN6LYXYGHHYH6THW3CHSY2ZVQC
VX4LH5RUBCNCHN4VIKMMHSXMFSZBVKFTHSHLKSBMRCVA2G76GUQQC
3PIOBGINNZSES3CV4FPGKCPQOSO2DYFKRUIVRLE62L2RGM3D3T2QC
use serenity::model::prelude::UserId;use serenity::{model::channel::Message, prelude::Context};
use serenity::model::prelude::UserId;
use serenity::{model::channel::Message, prelude::Context};
use serenity::model::prelude::{Message, ReactionType, UserId};use serenity::prelude::Context;
use serenity::model::prelude::{Message, ReactionType, UserId};
use serenity::prelude::Context;
msg.react(&ctx, "🇵")?; msg.react(&ctx, "🇩")?; return Ok(());
msg.react(&ctx, "🇵")?;
msg.react(&ctx, "🇩")?;
return Ok(());
args.restore(); message = get_last_message(ctx, msg)?; } else { message = tmp.unwrap();
args.restore();
message = get_last_message(ctx, msg)?;
} else {
message = tmp.unwrap();
// get all the already used emoji for reaction in message.reactions.iter() { match &reaction.reaction_type { ReactionType::Unicode(e) => already_used_emoji.insert(e.clone()), _ => false, // useless }; }
// get all the already used emoji
for reaction in message.reactions.iter() {
match &reaction.reaction_type {
ReactionType::Unicode(e) => already_used_emoji.insert(e.clone()),
_ => false, // useless
};
}
fn get_last_message( ctx: &mut Context, msg: &Message,) -> Result<Message, Box<dyn std::error::Error>> { Ok(msg .channel_id .messages(&ctx, |retriever| retriever.before(msg.id).limit(1))?[0] .clone())}
fn get_last_message(
ctx: &mut Context,
msg: &Message,
) -> Result<Message, Box<dyn std::error::Error>> {
Ok(msg
.channel_id
.messages(&ctx, |retriever| retriever.before(msg.id).limit(1))?[0]
.clone())
'ç' | 'Ç' => Some('c'),