M
M
Michalitch2021-12-11 23:41:43
Python
Michalitch, 2021-12-11 23:41:43

on_member_join not working, how to fix?

#hi
@client.event
async def on_member_join(member):
print(f'{member.mention} has joined the server.')
channel = client.get_channel(919319558202998855)
await channel.send(f'{member.mention} Welcome To The Club Buddy!')
await channel.send(' https://tenor.com/beeFU.gif ')

~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
You need to send 2 messages: greeting, gif (in a separate message)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
tatsuki1, 2021-12-12
@Mikhalitch

@client.event
async def on_member_join(member):
  print(f'{member.mention} has joined the server.')
  channel = client.get_channel(919319558202998855)
  join = discord.Embed(description=f"{member.mention} Welcome To The Club Buddy!", color=discord.Colour.random())
  join.set_image(url="https://tenor.com/beeFU.gif")
  await channel.send(embed=join)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question