From 026bcf836fc7bf837f65be8d2128ec38444a76ac Mon Sep 17 00:00:00 2001 From: duck <113956421+duckfromdiscord@users.noreply.github.com> Date: Thu, 28 Dec 2023 22:59:39 -0500 Subject: [PATCH] Fix "Message could not be loaded" with `/lfmuser` result --- src/discord/lastfm.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/discord/lastfm.rs b/src/discord/lastfm.rs index 1fc8c08..935d05c 100644 --- a/src/discord/lastfm.rs +++ b/src/discord/lastfm.rs @@ -103,8 +103,9 @@ pub async fn lfmuser_cmd(ctx: Context<'_>, api: Option, arg: String) { None => "[user not found, or cancel occurred]".to_string(), }; - ctx.send( - CreateReply::default().embed( + ctx.channel_id().send_message( + ctx, + CreateMessage::new().embed( CreateEmbed::new() .title(format!("LastFM user {}'s scrobbles", arg.clone())) .field("Within the past year", trackcount, false),