New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Selfbot DM Problem #178
Comments
toDM parameter is not used by the way |
I saw a method called createDM, do we need to use that ? |
Pls try async function dmEveryone(message, toDM) {
let members = await message.guild.members.fetch({ force: true });
for (const [key, value] of members.entries()) {
await value
.send("Test")
.catch(() => console.log("error"))
}
} |
Still doesn't work :/ |
PS: The users are mine and their DM are open |
async function dmEveryone(message, toDM) {
let members = await message.guild.members.fetch({ force: true });
for (const [key, value] of members.entries()) {
let channel = value.user.dmChannel;
if (!channel) {
channel = await value.user.createDM(true)
}
await channel
.send("Test")
.catch(() => console.log("error"))
}
} |
I will fix it tomorrow :sad: |
Ok, thank you ! ^^ Maybe coming from the gateway ???? |
Wdym :? |
You are using a gateway right to send a message to the user ( exemple: Anyway, when you fixed it, can you tell me when it's done ( not going to close the issue if you want to respond here when you fixed it ). Thank you a lot again! |
And sorry for my broken english, I'm french, hope you don't hate us 😂 |
i think i will fix it soon (currently 00:45 where i live) |
Oh, sorry then, not going to disturb you more, have a good night if you go to sleep ! |
I fixed it, please update @ByLife |
Let's see 🥂 |
And this user is on the same server, DM open only never messaged him before |
Weird right ? |
This user is mine and he has it turned on, but it's ok ;) |
problem solved? |
No but it's ok, not going to annoy you more |
Issue description
Hi, I'm trying to make a DM ALL, only issue is that
it does send a message to the user when you have at least one message already sent to him.
If you don't have at least one message sent by you ( manually ) with the person, It will open the DM but send nothing (even with a setTimeout())
Code sample
Package version
Newest
Node.js version
16.9.1
Operating system
Windows
Priority this issue should have
Low (slightly annoying)
Checklist
Additional Information
No response
The text was updated successfully, but these errors were encountered: