Fix send_image file handle issue.
This commit is contained in:
parent
ddad2674d3
commit
51d5331d9d
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user