Answers for "How do you get a discord bot to send a message when someone joins in python?"

8

discord.py making a bot join

@bot.command()
async def join(ctx):
    channel = ctx.author.voice.channel
    await channel.connect()
@bot.command()
async def leave(ctx):
    await ctx.voice_client.disconnect()
Posted by: Guest on June-08-2020
1

message on member joining discord.py

@client.event
async def on_member_join(member):
    await member.send('Private message')
Posted by: Guest on June-07-2021

Code answers related to "How do you get a discord bot to send a message when someone joins in python?"

Python Answers by Framework

Browse Popular Code Answers by Language