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

Can't delete ephemeral replies on djs v13 #8810

Closed
Raraph84 opened this issue Nov 4, 2022 · 2 comments · Fixed by #8811
Closed

Can't delete ephemeral replies on djs v13 #8810

Raraph84 opened this issue Nov 4, 2022 · 2 comments · Fixed by #8811

Comments

@Raraph84
Copy link

Raraph84 commented Nov 4, 2022

Which package is this bug report for?

discord.js

Issue description

I have an error when I try to delete ephemeral with djs v13.
This issue is fixed with djs v14 with this commit that wasn't backported to djs v13.
Normally we can delete ephemeral replies from this Discord API changelog
Step to reproduce :

  1. Reply to an interaction with an ephemeral response
  2. Try deleting this response with CommandInteraction#deleteReply
  3. Get Error [INTERACTION_EPHEMERAL_REPLIED]: Ephemeral responses cannot be deleted.

Code sample

client.on("interactionCreate", async (interaction) => {
    await interaction.reply({ content: "Replied!", ephemeral: true });
    await interaction.deleteReply();
});

Package version

13.12.0

Node.js version

v18.11.0

Operating system

Debian 11 (Bullseye)

Priority this issue should have

Medium (should be fixed soon)

Which partials do you have configured?

No Partials

Which gateway intents are you subscribing to?

Guilds, GuildMembers, GuildInvites, GuildPresences, GuildMessages, GuildMessageReactions

I have tested this issue on a development release

No response

@Raraph84
Copy link
Author

Raraph84 commented Nov 4, 2022

I made a PR here
It's my first PR on discord.js so I don't know if I did it right

@SpaceEEC SpaceEEC linked a pull request Nov 4, 2022 that will close this issue
@Jiralite Jiralite added the has PR label Nov 4, 2022
@CitTheDev
Copy link
Contributor

This issue should now be closed as PR #8811 has been merged

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants