[−][src]Function serenity_utils::menu::close_menu
pub async fn close_menu<'_, '_>(menu: &'_ mut Menu<'_>, _reaction: Reaction)
Closes a reaction menu by deleting the menu's message.
Note: This function is not a ControlFunction
. To turn it into a
control function, you must pin it and then create an Arc
of it.
let close_menu_cfn = Arc::new(|m, r| Box::pin(close_menu(m, r)));
close_menu_cfn
is a ControlFunction
and can be used to control a menu.