dolfies / discord.py-self

A fork of the popular discord.py for user accounts.
https://discordpy-self.rtfd.io/en/latest/
MIT License
683 stars 162 forks source link

on_member_join(member) #316

Closed 5t0n1e closed 2 years ago

5t0n1e commented 2 years ago

Summary

on_member_join(member) not working?

Reproduction Steps

When trying to trigger the on_member_join event the selfbot doesn't detect any members joining the guild it is in. It could be me using the event wrong but I'm not sure. Any help on this?

Code

@client.event
async def on_member_join(member):
    await member.send("hey")
    print(f"Sent message to {member.username}")

Expected Results

Member object

Actual Results

Nothing

System Information

Windows 10

Checklist

Additional Information

No response

JU5TDIE commented 2 years ago

Unfortunately, that event doesn't work on this library. https://github.com/dolfies/discord.py-self/discussions/42

Edit : Are you using discord.py-self 1.9.2? If so, you have to reinstall your discord.py-self with latest master branch. (pip install git+https://github.com/dolfies/discord.py-self.git)

5t0n1e commented 2 years ago

Updating discord.py-self worked but ran into some issues with aiohttp. This was fixed by updating aiohttp to 3.8.1. Thanks!

dolfies commented 2 years ago

Remember that chunking only works on guilds with < 1k members.

5t0n1e commented 2 years ago

Does this mean the on_member_join doesn't register joins in servers bigger then 1K?