Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setEphemeral(true) is not working #45

Closed
GillHoang opened this issue Jul 19, 2022 · 5 comments
Closed

setEphemeral(true) is not working #45

GillHoang opened this issue Jul 19, 2022 · 5 comments

Comments

@GillHoang
Copy link

Screen Shot 2022-07-19 at 11 50 07 AM

Screen Shot 2022-07-19 at 11 50 28 AM

here all

@imranbarbhuiya
Copy link
Owner

fixed in v4.0.1

@GillHoang
Copy link
Author

GillHoang commented Jul 19, 2022

fixed in v4.0.1

not working too
Screen Shot 2022-07-19 at 3 12 14 PM
o

@imranbarbhuiya
Copy link
Owner

imranbarbhuiya commented Jul 19, 2022

Unknown interaction means you are replying to the interaction after 3s. It might be due to your internet connection or you are fetching something which is taking 3s+ time. If you need 3s+ time before replying, use deferReply before doing anything then use editReply in pagination.

@GillHoang
Copy link
Author

Screen Shot 2022-07-19 at 4 21 21 PM
Screen Shot 2022-07-19 at 4 21 51 PM

idk

@imranbarbhuiya
Copy link
Owner

editReply can't make the response ephemeral. You need to pass {ephemeral: true} in deferReply.

await interaction.deferReply({ephemeral: true})

adding ephemeral only works in reply and deferReply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants