delete ?button

This commit is contained in:
oupson 2021-06-20 12:24:00 +02:00
parent 644bd66ec3
commit 92e4d7b75a
1 changed files with 1 additions and 0 deletions

View File

@ -286,6 +286,7 @@ async fn _image(ctx: &Context, msg: &Message, mut args: Args) -> crate::commands
#[command] #[command]
async fn button(ctx: &Context, msg: &Message) -> CommandResult { async fn button(ctx: &Context, msg: &Message) -> CommandResult {
msg.delete(ctx).await?;
msg.channel_id msg.channel_id
.send_message(ctx, |msg| { .send_message(ctx, |msg| {
msg.content("An innofensive button").components(|f| { msg.content("An innofensive button").components(|f| {