Closed eyal282 closed 2 years ago
Doesn't the edited reply become ephemeral or not depending on the reply?
Doesn't the edited reply become ephemeral or not depending on the reply?
It just does nothing, but it always works regardless of what you input. It's more for legacy forward in case some discord update breaks something.
So I'm trying to understand this issue and I really can't... Can you provide a minimal reproducible example and try to explain the issue in a different way?
Since this issue has gone stale, I'll be closing this, if you can replicate this with a simple code sample, follow up and I'll reopen the issue!
I was just looking for a fix for this.. here's a bare bones example:
const { SlashCommandBuilder } = require('discord.js');
const wait = require('node:timers/promises').setTimeout;
module.exports = {
data: new SlashCommandBuilder()
.setName('ping')
.setDescription('Replies with pong'),
async execute(interaction) {
await interaction.deferReply();
await wait(4000);
await interaction.editReply({ content: 'Pong!', ephemeral: true });
await interaction.followUp({ content: 'Pong again!', ephemeral: true });
},
};
When called, the message "Pong!" is NOT ephemeral, but the "Pong again!" is.
When called, the message "Pong!" is NOT ephemeral, but the "Pong again!" is.
That is the expected behaviour. There is nothing to fix here. To be clear: Discord cannot convert a regular message to an ephemeral one, which seems to be what you want to do here. It's not possible. If you wanted "Pong!" to be ephemeral, then defer ephemerally.
Issue description
Code sample
discord.js version
13.1.0
Node.js version
16.9.1
Operating system
No response
Priority this issue should have
Low (slightly annoying)
Which partials do you have configured?
No Partials
Which gateway intents are you subscribing to?
GUILDS, GUILD_MEMBERS, GUILD_MESSAGES, DIRECT_MESSAGES
I have tested this issue on a development release
No response