You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// inside a command functionlet attachment_name = format!("{}'s_{}.png", "some", "one");// mind the apostrophelet attachment = serenity::CreateAttachment::bytes(image_data,&attachment_name);// 👈 first use herelet embed = serenity::CreateEmbed::new()// other things here.attachment(attachment_name);// 👈 second use herelet reply = poise::CreateReply::default().attachment(attachment).embed(embed);}
the apostrophe in attachment_name causes the two functions to give different output somehow. The attachment is no longer in the embed.
Removing the apostrophe resolved that problem.
The text was updated successfully, but these errors were encountered:
Serenity version: I am using
poise 0.6.0
Rust version (
rustc -V
): 1.74Minimal test case if possible:
the apostrophe in
attachment_name
causes the two functions to give different output somehow. The attachment is no longer in the embed.Removing the apostrophe resolved that problem.
The text was updated successfully, but these errors were encountered: