#File uploading issue

1 messages · Page 1 of 1 (latest)

thick cove
#

I am producing a file like so:

InteractionResponseDataBuilder::new()
        .attachments(vec![Attachment::from_bytes(
            "card.png".to_string(),
            png_data,
            1,
        )])
        .build()

However, when i attempt to send a message with this InteractionResponseData, discord says "this interaction failed."

wooden rain
#

probably hitting that 3sec deadline

#

defer the interaction and create it as a followup

thick cove
wooden rain
#

no

#

only message flags are allowed

#

and out of those only ephemeral and remove embeds are allowed

thick cove
#

Okay, cool- is update_webhook_with_token the correct function

wooden rain
#

no followup

thick cove
thick cove
#

oh you need an interaction client