discord.py get the length of the bots commands code example Example: send image discord.py await channel.send(file=discord.File('my_image.png'))