From f8e4b8a71868edcf2a069aa6d8170ee995a202a4 Mon Sep 17 00:00:00 2001 From: Bulat Kurbanov Date: Mon, 13 May 2024 21:39:02 +0200 Subject: [PATCH] Fix --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index c39abf8..2fa16a7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -30,7 +30,7 @@ impl EventHandler for Handler { async fn interaction_create(&self, ctx: Context, interaction: Interaction) { if let Interaction::Command(command) = interaction { match command.data.name.as_str() { - "create_message" => { + "copy_message" => { let message_id = command.data.options[0].value.as_str().unwrap().parse::().unwrap(); let message = command.channel_id.message(&ctx.http, message_id).await.unwrap();