From af2676294754d22cf2774f2cea2c16151aa5a6c7 Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Tue, 28 Jan 2020 17:26:01 -0500 Subject: add help, fix gaem --- src/commands/help.rs | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/commands/help.rs (limited to 'src/commands/help.rs') diff --git a/src/commands/help.rs b/src/commands/help.rs new file mode 100644 index 0000000..743a099 --- /dev/null +++ b/src/commands/help.rs @@ -0,0 +1,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, +) -> Result<()> { + help_commands::with_embeds(ctx, msg, args, opts, groups, owners) +} -- cgit v1.3.1