Can you accept a thread channel as an option in a slash command?
Can you use
const channel = interaction.options.getChannel('destination');
with a thread channel?8 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.I'm seeing this error at the moment. This command is used in a DM, but accepts a thread from a server. Is that still possible?


Node: 8.19.1
Discord.js: 14.4
Here's what the code where the command is created looks like

I do not think it's possible to provide a thread from a server thru user DMs unless you use a string value and it's fetching from a specific server
thank you for the answer 🙏 !! @mateie
gotcha homes