interaction.channel is null in DM
it works for servers, but not in direct message as 'user app'.
I already use as suggestions of others similar questions, but I am not sure what I am missing:
command is as follow:
DT
d.js toolkit•15d ago
- 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 OPC
-Carlos👑•15d ago
Use the Partial enum for partials, since partials are numbers
X
Xaphy•15d ago
It worked, thanks.
Support server for discord.js, a Node.js module to interact with the Discord bot API.
58KMembers
View on DiscordWant results from more Discord servers?
More PostsDiscord cdn not working?I'm storing a link of an image attachment `...cdn.discordapp.com/attachments...` and the content is this isn’t really an error but more of a questionHow would you exactly use the presence to detect if a specific role has online members? as i am tryduplicate responsesSlash command Duplicate error!!i keep getting this error trying to refresh my slash cmds using the command deploy from discordjs.gucrash even if I have a trycatchThe bot crashes even if I put a trycatch(error).Trouble with collector and interactionsHere's the part of my code that's causing errors:
```javascript
async function handleListReactions(unknown interactionhello everyone
i have a ticket bot and when the admin want to close the ticket and press the button What are the exact differences between a Webhook and a Webhook client?I've read the page on the [discordjs.guide](https://discordjs.guide/popular-topics/webhooks.html#wha