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
d.js docs
d.js docs3y ago
• 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.
t̴humper
t̴humperOP3y ago
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?
t̴humper
t̴humperOP3y ago
t̴humper
t̴humperOP3y ago
Node: 8.19.1 Discord.js: 14.4
t̴humper
t̴humperOP3y ago
Here's what the code where the command is created looks like
⸸⛧Stealth⛧⸸
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
t̴humper
t̴humperOP3y ago
thank you for the answer 🙏 !! @mateie
⸸⛧Stealth⛧⸸
gotcha homes
Want results from more Discord servers?
Add your server