Skip to content

Commit

Permalink
Fix "Message could not be loaded" with /lfmuser result
Browse files Browse the repository at this point in the history
  • Loading branch information
duckfromdiscord committed Dec 29, 2023
1 parent 7d6539d commit 026bcf8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/discord/lastfm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,9 @@ pub async fn lfmuser_cmd(ctx: Context<'_>, api: Option<String>, 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),
Expand Down

0 comments on commit 026bcf8

Please sign in to comment.