Sending messages in a Group DM w/ `UserInstall` & `PrivateChannel` w/out Interaction
Greetings,
I'm struggling with sending messages to a Group DM outside of interactions.
There seems to be no straight forward way (that I've come across) to send a message to a Group DM, so the workaround I found was to use a
CommandInteraction
and then cache the InteractionWebhook
and use that, which worked great... for all of about 15 mins, when I guess Discord culled the Webhook?
I suspect I've overcomplicated things; my end goal is simple, I just need to be able to send a message to a Group DM from the Bot User without being tied to an Interaction (i.e. at any time).
Cheers,
Chris2 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 OP[email protected]
& v20.15.0
So there's no way at all to send messages to a Group DM outside of an interaction?
A small group of my friends and I are volunteer firefighters, I was wanting to link up our paging service to send a message when one of us got a call so we know where they went. It seemed silly to create an entire guild when there's only a handful of us
that would need a guild Channel to send toI read that as we can't create a webhook for a group DM? Just the clarify, the reason I was looking at GroupDMs in the first instance is because that's where we are already situated and chat, no other reason 😅 Alright, well thank you for the explanation, I'll take this back to the group and see what they want to do. Cheers, and Merry belated Christmas if you celebrate