Discord file now takes a path, so just give em a path.
This commit is contained in:
parent
bf9115e13c
commit
cc199c395d
@ -96,8 +96,8 @@ class QRInvite(Cog):
|
|||||||
)
|
)
|
||||||
|
|
||||||
png_path: pathlib.Path = path / (ctx.guild.icon + "_qrcode.png")
|
png_path: pathlib.Path = path / (ctx.guild.icon + "_qrcode.png")
|
||||||
with png_path.open("rb") as png_fp:
|
# with png_path.open("rb") as png_fp:
|
||||||
await ctx.send(file=discord.File(png_fp.read(), "qrcode.png"))
|
await ctx.send(file=discord.File(png_path, "qrcode.png"))
|
||||||
|
|
||||||
|
|
||||||
def convert_webp_to_png(path):
|
def convert_webp_to_png(path):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user