aboutsummaryrefslogtreecommitdiff
path: root/src/commands/help.rs
diff options
context:
space:
mode:
authorNathan Perry <np@nathanperry.dev>2020-01-28 17:26:01 -0500
committerNathan Perry <np@nathanperry.dev>2020-01-28 17:26:01 -0500
commitaf2676294754d22cf2774f2cea2c16151aa5a6c7 (patch)
tree421e1c305691db7d7fe3a2c9a0a8e752b130dd1d /src/commands/help.rs
parentdde5eb52706a9ca8ee257a6cbd75e243582d0a86 (diff)
add help, fix gaem
Diffstat (limited to 'src/commands/help.rs')
-rw-r--r--src/commands/help.rs32
1 files changed, 32 insertions, 0 deletions
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<UserId>,
+) -> Result<()> {
+ help_commands::with_embeds(ctx, msg, args, opts, groups, owners)
+}