Function serenity_utils::misc::add_reactions
source · [−]pub async fn add_reactions(
ctx: &Context,
msg: &Message,
emojis: Vec<ReactionType>
) -> Result<(), Error>
Expand description
Adds reactions in a non-blocking fashion.
This allows you to perform other tasks while reactions are being added. This
works by creating a separate task for adding emojis in the background. The
order of emojis
is preserved.
See add_reactions_blocking
to add reactions in a blocking fashion. This
function is slightly less efficient than the blocking counterpart.