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

pub fn plain(
    ctx: &mut Context,
    msg: &Message,
    args: Args,
    help_options: &HelpOptions,
    groups: &[&'static CommandGroup],
    owners: HashSet<UserId>
) -> CommandResult

Posts formatted text displaying 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]
fn my_help(
    context: &mut Context,
    msg: &Message,
    args: Args,
    help_options: &'static HelpOptions,
    groups: &[&'static CommandGroup],
    owners: HashSet<UserId>
) -> CommandResult {
    plain(context, msg, args, &help_options, groups, owners)
}

client.with_framework(StandardFramework::new()
    .help(&MY_HELP));