question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot add file to message while using ephemeral

See original GitHub issue

Description While using ephemeral, adding file to message isn’t possible.

Steps to Reproduce

            event.getHook().setEphemeral(true);
            File file = new File("image.png");
            event.getHook()
                    .sendFile(file, "image.png")
                    .addEmbeds(new EmbedBuilder()
                            .setTitle("Title")
                            .setImage("attachment://image.png")
                            .build())
                    .queue();

Expected Behavior A embed message with image from attachment.

Current Behavior A embed message without image from message.

Screenshots/Videos event.getHook().setEphemeral(false);

image

event.getHook().setEphemeral(true);

image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ygimenezcommented, Sep 17, 2021

That was fast

1reaction
TopiSenpaicommented, Jul 3, 2021

that’s a limitation on discords end

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to send ephemeral ("hidden") message with pycord
Discord uses 'respond' to respond to commands and 'send' to send a message to a specific channel. Only responses can be ephemeral so...
Read more >
chat.postEphemeral method - Slack API
This method posts an ephemeral message, which is visible only to the assigned user in a specific public channel, private channel, or private...
Read more >
Configuring file system access for Lambda functions
Open the Functions page of the Lambda console. · Choose a function. · Choose Configuration and then choose File systems. · Under File...
Read more >
TCP/IP port exhaustion troubleshooting - Windows Client
Learn how to troubleshoot port exhaustion issues. Port exhaustion occurs when all the ports on a machine are used.
Read more >
Implementation with ephemeral pipe - IBM
Some KPP ENV files use KDC_FAMILIES instead of KDE_TRANSPORT. The process is exactly the same for the KDC_FAMILIES environment variable: adding the ephemeral...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found