You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
use std::collections::HashSet;
|
|
|
|
|
|
|
|
use serenity::client::Context;
|
|
|
|
use serenity::framework::standard::macros::help;
|
|
|
|
use serenity::framework::standard::{help_commands, Args};
|
|
|
|
use serenity::framework::standard::{CommandGroup, CommandResult, HelpOptions};
|
|
|
|
use serenity::model::channel::Message;
|
|
|
|
use serenity::model::id::UserId;
|
|
|
|
|
|
|
|
#[help]
|
|
|
|
#[max_levenshtein_distance(2)]
|
|
|
|
pub async fn help(
|
|
|
|
ctx: &Context,
|
|
|
|
msg: &Message,
|
|
|
|
args: Args,
|
|
|
|
help_options: &'static HelpOptions,
|
|
|
|
groups: &[&'static CommandGroup],
|
|
|
|
owners: HashSet<UserId>,
|
|
|
|
) -> CommandResult {
|
|
|
|
let _ = help_commands::with_embeds(ctx, msg, args, help_options, groups, owners).await;
|
|
|
|
|
|
|
|
Ok(())
|
|
|
|
}
|