Category : discord.py

I’m trying to make a help command that sends the current server-prefixes for the bot in an embed. I’m having some trouble trying to figure out how to code this, and I would love some help. I have tried doing: @bot.command() async def help(ctx): embed = discord.Embed( title=’Help’, description=”, colour=discord.Colour.blue()) embed.set_footer(text=’Have fun!’) prefix = command_prefix ..

Read more

i’m doing a Discord bot with python 3.8 and i have a problem with my function on_member_join() @bot.event async def on_member_join(member): embed = discord.Embed( title=f"that doesn’t function") channel = discord.utils.get(member.guild.channels, name=’WELCOME_CHANNEL_NAME’) await member.send(‘Hello’) await channel.send(embed=embed) my member.send function (send a private message with hello) but channel.send send this error await channel.send(embed=embed) AttributeError: ‘NoneType’ object has ..

Read more