Skip to content

Commit

Permalink
Attempt to fix GIF attachments from The Collective
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinegb committed Apr 15, 2024
1 parent 7e1ed6b commit 692582a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/collective.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub(super) async fn collective(
CreateMessage::new().content(format!("{} said: \"{message}\"", ctx.author().mention()));

if let Some(attachment) = attachment {
let attachment_builder = CreateAttachment::url(ctx, &attachment.proxy_url).await?;
let attachment_builder = CreateAttachment::url(ctx, &attachment.url).await?;

webhook_builder = webhook_builder.add_file(attachment_builder.clone());
message_builder = message_builder.add_file(attachment_builder);
Expand Down

0 comments on commit 692582a

Please sign in to comment.