E
E
EugenOP2021-09-27 15:41:55
Python
EugenOP, 2021-09-27 15:41:55

Does not display a greeting when the player enters. What to do?

@commands.Cog.listener()
async def on_member_join(self, member):
channel = self.bot.get_channel(845581728000245775)
await channel.send(member.mention, embed = discord.Embed(title='Welcome'))
Doesn't write error

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Killir Vanya229, 2021-09-27
@EugenOP

In the bot settings in discord, enable 2 checkboxes where intents and add to bot = commands.bot(intents=discord.Intents().all())

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question