mirror of
https://github.com/kurbezz/discord-bot.git
synced 2025-12-06 07:05:36 +01:00
Fix
This commit is contained in:
@@ -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::<u64>().unwrap();
|
||||
let message = command.channel_id.message(&ctx.http, message_id).await.unwrap();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user