import disnake from disnake . ext import commands bot = commands . Bot ( command_prefix = "." , help_command = None , intents = disnake . Intents . all ( ) ) @bot.event async def on_ready ( ) : print ( f"Bot{bot.user}is ready to work!" ) @bot.event async def on_member_join ( member ) : Role = await disnake . utils . get ( guild_id = member . id , role_id = 1213403733183037440 ) channel = bot . get_channel ( 1212842152699240489 ) #member.guild.system_channel embed = disnake . Embed ( title = "Новый участник!" , description = f"{member.name}" ) bot . run ( "MTIxNTMwNTU3OTcxNTc1NjA4Mw.GRsiB6.Fz4an5cIll-d3O8ML9_2FtVOV3V9GngK-sC3co" )