bot invites unwanted members into private threads
hi, discord.js
I programmed a function that emit a drop embed message (with button) in the channel that reached 100 messages
something weird happen when a drop occour in a private thread channel. when this happen, a lot of unwanted and casual users of our gild spawn in it, make a disaster
I noticed this occour when the bot send his message in it
this is the code that generate a drop message
2 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!running on windows:
discord.js: 14.13
node: 16.20
yes, programmer š thx, that's all the code this function execute when fired by "new message" discord event
to have a full picture I can post even the code fired when the button Is pressed
interaction.member does not refer to Who pressed the button?
yes, my friend, I think you have found the problem, I mention the entire role so all members that have this role being mentioned inside the thread
š¤