pub async fn close_menu(menu: &mut Menu<'_>, _reaction: Reaction)
Expand description

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.