Fix send_image file handle issue.

This commit is contained in:
tamservo 2023-11-24 16:02:30 -05:00
parent ddad2674d3
commit 51d5331d9d

View File

@ -51,7 +51,7 @@ class Robottas(commands.Bot):
file_name = os.path.dirname(os.path.realpath(__file__))
file_name = os.path.join(file_name, image_file)
with open(file_name, "rb") as handle:
df = discord.File(handle.read(), filename=file_name)
df = discord.File(handle, filename=file_name)
await ctx.send(file=df)
def send_delay_message(self, message):