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
feat(MessageAttachment): add support for ephemeral property #6652
Conversation
This is working as expected: client.on('interactionCreate', async interaction => {
if (!interaction.isCommand()) return;
if (interaction.commandName === 'test') {
const attachment = new MessageAttachment('./pic.jpg', 'pic.jpg');
await interaction.reply({ ephemeral: true, files: [attachment] }); // ✔️ works
}
}); but it seems like you can't send attachments in a deferred ephemeral interaction: client.on('interactionCreate', async interaction => {
if (!interaction.isCommand()) return;
if (interaction.commandName === 'test') {
await interaction.deferReply({ ephemeral: true })
const attachment = new MessageAttachment('./pic.jpg', 'pic.jpg');
await interaction.editReply({ files: [attachment] }); // ✖️ doesn't work
}
}); |
Hopefully this gets released soon. I know I'm in need of this feature for some specific things with embeds, and this would be awsome! |
Checked again and found this has been fixed ✨ |
Co-authored-by: Rodry <38259440+ImRodry@users.noreply.github.com>
Please describe the changes this PR makes and why it should be merged:
Status and versioning classification: