AlexzanderFlores / WOKCommands

132 stars 61 forks source link

Deferring #206

Closed Grayson-code closed 2 years ago

Grayson-code commented 2 years ago

Adding an option to defer an slash command whenever its send and if yes making the return strings work with them

ASPNyan commented 2 years ago

If you're saying what I think you are, this is a part of Discord.JS already. Use interaction.deferReply(). https://discord.js.org/#/docs/discord.js/stable/class/CommandInteraction?scrollTo=deferReply

You can then run whatever code you want and then just use interaction.editReply(content)

Grayson-code commented 2 years ago

If you're saying what I think you are, this is a part of Discord.JS already. Use interaction.deferReply(). https://discord.js.org/#/docs/discord.js/stable/class/CommandInteraction?scrollTo=deferReply

You can then run whatever code you want and then just use interaction.editReply(content)

i figured it out long time ago and i dont use wok commands anymore but thanks for solving this.