aboutsummaryrefslogtreecommitdiff
path: root/src/commands/help.rs
blob: 743a0995caac6fcb6f85c1d06922d831444b1993 (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
32
use std::collections::HashSet;

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

use crate::Result;

#[help]
pub fn help(
    ctx: &mut Context,
    msg: &Message,
    args: Args,
    opts: &'static HelpOptions,
    groups: &[&'static CommandGroup],
    owners: HashSet<UserId>,
) -> Result<()> {
    help_commands::with_embeds(ctx, msg, args, opts, groups, owners)
}