// handle a user calling generate command from Discord.
handle a user calling generate command from Discord.
handle a user calling generate command from Discord .
pub fn handle_generate<'a>(
    ctx: &'a Context,
    interaction: &'a ApplicationCommandInteraction,
) -> InteractionResult<'a> {
    // Wrap the inner async function in a pinned box.
    return Box::pin(async move { handle(ctx, interaction).await });
}
pub fn handle_generate < ' a > ( ctx : & ' a Context , interaction : & ' a ApplicationCommandInteraction , ) -> InteractionResult < ' a > { // Wrap the inner async function in a pinned box. return Box :: pin ( async move { handle ( ctx , interaction ) . await } ) ; }
handle a user calling generate command from Discord.
handle a user calling generate command from Discord .
ctx
&'a Context
interaction
&'a ApplicationCommandInteraction