Navigation X
ALERT
Click here to register with a few steps and explore all our cool stuff we have to offer!



   1993

discord.py mass dm bot help

by Six - 19 April, 2020 - 07:21 AM
This post is by a banned member (Six) - Unhide
Six  
Registered
153
Posts
46
Threads
6 Years of service
#1
Soo I've tried doing a mass dm bot with discord.py. But the problem  is when i try it on a  selfbot and try to get all members from a guild i get max 10 (from a 20k member guild) and one of them is me..

The code i'm using is pretty basic:
 
Code:
for mem in guild.members:
    channel = await mem.create_dm()
    await channel.send("Something")
 
Any suggestions on doing it so it gets more members from a guild ?
This post is by a banned member (clap) - Unhide
clap  
Godlike
515
Posts
134
Threads
6 Years of service
#2
(This post was last modified: 19 April, 2020 - 07:23 AM by clap.)
https://discordpy.readthedocs.io/en/stab...ld.members
Might want to take another look at the docs...

(not trying to come of rude keek)
Always confirm via PM before dealing with me.
This post is by a banned member (Six) - Unhide
Six  
Registered
153
Posts
46
Threads
6 Years of service
#3
(19 April, 2020 - 07:22 AM)iclapcheeks Wrote: Show More
https://discordpy.readthedocs.io/en/stab...ld.members
Might want to take another look at the docs...

(not trying to come of rude keek)

There's nothing wrong or i'm just completely blind xd.. 
guild.members returns a list of the members that belong to that guild  but when i do len(guild.members) from a guild with a 20k members all i got is around 4-9 which isn't nearly as close to 20k.
It just doesnt make sense to me xd
This post is by a banned member (clap) - Unhide
clap  
Godlike
515
Posts
134
Threads
6 Years of service
#4
(This post was last modified: 19 April, 2020 - 07:38 AM by clap.)
(19 April, 2020 - 07:27 AM)Six Wrote: Show More
(19 April, 2020 - 07:22 AM)iclapcheeks Wrote: Show More
https://discordpy.readthedocs.io/en/stab...ld.members
Might want to take another look at the docs...

(not trying to come of rude keek)

There's nothing wrong or i'm just completely blind xd.. 
guild.members returns a list of the members that belong to that guild  but when i do len(guild.members) from a guild with a 20k members all i got is around 4-9 which isn't nearly as close to 20k.
It just doesnt make sense to me xd

It has to do something with discord not letting you get all of the members, I've encountered this issue as well, you need to be the owner/top admin to return every member I believe.

Add me on discord to discuss more, X3RX35#8872
Always confirm via PM before dealing with me.
This post is by a banned member (Six) - Unhide
Six  
Registered
153
Posts
46
Threads
6 Years of service
#5
(19 April, 2020 - 07:38 AM)iclapcheeks Wrote: Show More
(19 April, 2020 - 07:27 AM)Six Wrote: Show More
(19 April, 2020 - 07:22 AM)iclapcheeks Wrote: Show More
Ahttps://discordpy.readthedocs.io/en/stab...ld.members
Might want to take another look at the docs...

(not trying to come of rude keek)

There's nothing wrong or i'm just completely blind xd.. 
guild.members returns a list of the members that belong to that guild  but when i do len(guild.members) from a guild with a 20k members all i got is around 4-9 which isn't nearly as close to 20k.
It just doesnt make sense to me xd

It has to do something with discord not letting you get all of the members, I've encountered this issue as well, you need to be the owner/top admin to return every member I believe.

Add me on discord to discuss more, X3RX35#8872

Added.
This post is by a banned member (Six) - Unhide
Six  
Registered
153
Posts
46
Threads
6 Years of service
#6
This is a bump
This post is by a banned member (BxJgj) - Unhide
BxJgj  
Registered
8
Posts
2
Threads
5 Years of service
#7
I recommend joining the discord api group, they are really helpfull and friendly. They helped me getting my worm to work. Good luck :)
This post is by a banned member (Six) - Unhide
Six  
Registered
153
Posts
46
Threads
6 Years of service
#8
(29 April, 2020 - 09:37 PM)BxJgj Wrote: Show More
I recommend joining the discord api group, they are really helpfull and friendly. They helped me getting my worm to work. Good luck :)

Thank you for the reply and the advice. :)

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
or
Sign in
Already have an account? Sign in here.


Forum Jump:


Users browsing this thread: 1 Guest(s)