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?
![](https://utfs.io/f/f285c8d8-319d-467b-9362-8db3b4588f38-4pl4mu.png)
![](https://utfs.io/f/f8d7fcc4-8ad6-43dd-9980-7f750fd88f95-4pl4mu.png)
Node: 8.19.1
Discord.js: 14.4
Here's what the code where the command is created looks like
![](https://utfs.io/f/2caee5b8-f72e-42a2-bcbf-355548e6e825-4pl4mu.png)
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