From 92e4d7b75a9fda9b53b5bf6abcdc6589597d62ba Mon Sep 17 00:00:00 2001 From: oupson Date: Sun, 20 Jun 2021 12:24:00 +0200 Subject: [PATCH] delete ?button --- src/commands/general.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/commands/general.rs b/src/commands/general.rs index 991961c..fba1293 100644 --- a/src/commands/general.rs +++ b/src/commands/general.rs @@ -286,6 +286,7 @@ async fn _image(ctx: &Context, msg: &Message, mut args: Args) -> crate::commands #[command] async fn button(ctx: &Context, msg: &Message) -> CommandResult { + msg.delete(ctx).await?; msg.channel_id .send_message(ctx, |msg| { msg.content("An innofensive button").components(|f| {