 
  
   
  
  background = Editor(Canvas((1024, 750), color = '#2F3136'))
                    # Avatar
                    profile_picture = await load_image_async(str(inter.author.avatar))
                    profile = Editor(profile_picture).resize((240, 240)).circle_image()
                    background.paste(profile, (750, 30))
                    # Ticket for nickname
                    poppins = Font.poppins(size = 60)
                    background.text((20, 40), text = f'Тикет от {inter.author}', font = poppins, color = '#FFFFFF')
                    file = disnake.File(fp = background.image_bytes, filename = 'ticket.png')
                    await inter.response.send_message(file = file, ephemeral = True) 
  
   
  
   
  
   
  
  
Или может не работать потому что у вас не включены интенты