delete ?button
This commit is contained in:
parent
644bd66ec3
commit
92e4d7b75a
|
@ -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| {
|
||||||
|
|
Loading…
Reference in New Issue