[][src]Function serenity::framework::standard::help_commands::with_embeds

pub async fn with_embeds<'_, '_, '_, '_>(
    ctx: &'_ Context,
    msg: &'_ Message,
    args: Args,
    help_options: &'_ HelpOptions,
    groups: &'_ [&'static CommandGroup],
    owners: HashSet<UserId>
) -> Option<Message>

Posts an embed showing each individual command group and its commands.

Examples

Use the command with exec_help:

use std::{collections::HashSet, hash::BuildHasher};
use serenity::{framework::standard::{Args, CommandGroup, CommandResult,
    StandardFramework, macros::help, HelpOptions,
    help_commands::*}, model::prelude::*,
};

#[help]
async fn my_help(
    context: &Context,
    msg: &Message,
    args: Args,
    help_options: &'static HelpOptions,
    groups: &[&'static CommandGroup],
    owners: HashSet<UserId>
) -> CommandResult {
    let _ = with_embeds(context, msg, args, &help_options, groups, owners).await;
    Ok(())
}

let framwork = StandardFramework::new()
    .help(&MY_HELP);