aboutsummaryrefslogtreecommitdiff
path: root/src/commands/help.rs
blob: 0d84b2dcaf0bdfe510d799ea9f279082cbbf5fa6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
use std::collections::HashSet;

use serenity::{
    framework::standard::{
        help_commands,
        macros::help,
        Args,
        CommandGroup,
        CommandResult,
        HelpOptions,
    },
    model::{
        channel::Message,
        id::UserId,
    },
    prelude::*,
};

#[help]
pub async fn help(
    ctx: &Context,
    msg: &Message,
    args: Args,
    opts: &'static HelpOptions,
    groups: &[&'static CommandGroup],
    owners: HashSet<UserId>,
) -> CommandResult {
    help_commands::with_embeds(ctx, msg, args, opts, groups, owners).await?;

    Ok(())
}