Pawele
Pawele
DIAdiscord.js - Imagine an app
Created by Pawele on 11/7/2024 in #djs-questions
how to use @silent (flag 4096) on a deferred interaction reply?
Alright then, thanks for your time and have a good day!
22 replies
DIAdiscord.js - Imagine an app
Created by Pawele on 11/7/2024 in #djs-questions
how to use @silent (flag 4096) on a deferred interaction reply?
basically deferReply from Wish xd
22 replies
DIAdiscord.js - Imagine an app
Created by Pawele on 11/7/2024 in #djs-questions
how to use @silent (flag 4096) on a deferred interaction reply?
other than sending a silent dummy message in advance and then editing it, i guess
22 replies
DIAdiscord.js - Imagine an app
Created by Pawele on 11/7/2024 in #djs-questions
how to use @silent (flag 4096) on a deferred interaction reply?
so, no way around that?
22 replies
DIAdiscord.js - Imagine an app
Created by Pawele on 11/7/2024 in #djs-questions
how to use @silent (flag 4096) on a deferred interaction reply?
I kinda suspected that, since I couldn't find any info in docs...
22 replies
DIAdiscord.js - Imagine an app
Created by Pawele on 11/7/2024 in #djs-questions
how to use @silent (flag 4096) on a deferred interaction reply?
works for me in normal messages, so I doubt that it would make a major difference, but sure I'll try the latest
22 replies
DIAdiscord.js - Imagine an app
Created by Pawele on 11/7/2024 in #djs-questions
how to use @silent (flag 4096) on a deferred interaction reply?
example: This works:
async execute(interaction) {
await interaction.reply({ content: "This msg is silent!", flags: 4096 });
}
async execute(interaction) {
await interaction.reply({ content: "This msg is silent!", flags: 4096 });
}
This doesn't work:
async execute(interaction) {
await interaction.deferReply({ flags: 4096 });
return setTimeout(() => {
interaction.editReply({ content: "This is sadly not silent.", flags: 4096 });
}, 3000);
}
async execute(interaction) {
await interaction.deferReply({ flags: 4096 });
return setTimeout(() => {
interaction.editReply({ content: "This is sadly not silent.", flags: 4096 });
}, 3000);
}
22 replies
DIAdiscord.js - Imagine an app
Created by Pawele on 11/7/2024 in #djs-questions
how to use @silent (flag 4096) on a deferred interaction reply?
djs version is 14.11.0 wanna full code (w/ structure of my slash command file) or just the relevant snippets?
22 replies