#on_member_join confusion

1 messages · Page 1 of 1 (latest)

true schooner
#

Using pycord rc1 and am unable to get on_member_join to work inside of a cog.

class Moderation_Module(commands.Cog):
    def __init__(self, bot):
        self.bot = bot
        print("Moderation Module Loading...")
    
    @commands.Cog.listener()
    async def on_member_join(member):
        print(f"Someone Joined")

# More stuff down here and setup

People join my server and the bot is not printing

orchid reef
#
    @commands.Cog.listener()
    async def on_member_join(self, member):
        print(f"Someone Joined")```
#

you are in a class

true schooner
#

Still not working

orchid reef
true schooner
#

Yea, is there a scope my bot needs to be able to listen to member joins?

#

Right now my link is just bot and applications.commands

orchid reef
#

if you have the intents and the cog is loaded

#

then it should be fine

orchid reef
true schooner
#

Just getting a missing access error

#
intents = discord.Intents.all()
intents.members = True
orchid reef