Skip to content

Commit

Permalink
Make static commands ignore arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
Scotsguy committed Feb 15, 2020
1 parent d7aa383 commit 73a22b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/commands.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use serenity::{
framework::standard::{
macros::{command, group},
CommandResult,
Args, CommandResult,
},
model::channel::Message,
prelude::*,
Expand All @@ -19,7 +19,7 @@ macro_rules! static_text_command {
$(
#[command]
$(#[aliases($aliases)])*
fn $name(ctx: &mut Context, msg: &Message) -> CommandResult {
fn $name(ctx: &mut Context, msg: &Message, _: Args) -> CommandResult {
if let Err(why) = msg.channel_id.send_message(&ctx.http, |m| {
m.embed(|e| {
e.title($title);
Expand Down Expand Up @@ -49,7 +49,7 @@ macro_rules! static_image_command {
$(
#[command]
$(#[aliases($aliases)])*
fn $name(ctx: &mut Context, msg: &Message) -> CommandResult {
fn $name(ctx: &mut Context, msg: &Message, _: Args) -> CommandResult {
if let Err(why) = msg.channel_id.send_message(&ctx.http, |m| {
m.embed(|e| {
e.image($image);
Expand Down

0 comments on commit 73a22b2

Please sign in to comment.