Skip to content

How can I get an ephemeral message of slash command? #318

Answered by dolfies
LEv145 asked this question in Help
Discussion options

You must be logged in to vote

Interaction.message just searches through the local message cache, it isn't guaranteed to find anything. Interaction.id isn't a message ID so no message with its ID exists.

If you want to get a response semi-reliably, use Client.wait_for (with a reasonable timeout) or move the code that handles the message to an on_message handler.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@LEv145
Comment options

@LEv145
Comment options

@jbaumgarten
Comment options

@isaaccs
Comment options

Answer selected by LEv145
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
5 participants