Put all webhooks in choices
Hi, is it possible to fetch all guild webhooks, and put them to the choices in slash command?
4 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by OPI mean here

Yes, you can fetch all Webhooks of a Guild using
<Guild>.fetchWebhooks()
(you may need to cache them) and then supply them via Autocomplete (as in Autocomplete Interactions).:method: Guild#fetchWebhooks()
[email protected]
Fetches all webhooks for the guild.
:guide: Slash Commands: Autocomplete
read more