From e4fb5b169e18ced2eb28ef660eaa99809c5f3403 Mon Sep 17 00:00:00 2001 From: nex Date: Tue, 3 Jan 2023 14:33:22 +0000 Subject: [PATCH] re-Fixed the screenshot command again --- cogs/other.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/other.py b/cogs/other.py index 071cc8d..c17ae23 100644 --- a/cogs/other.py +++ b/cogs/other.py @@ -72,7 +72,7 @@ class OtherCog(commands.Cog): await asyncio.sleep(render_time) await ctx.edit(content="Taking screenshot...") domain = re.sub(r"https?://", "", website) - data = await asyncio.to_thread(driver.get_screenshot_as_png()) + data = await asyncio.to_thread(driver.get_screenshot_as_png) _io = io.BytesIO() _io.write(data) _io.seek(0)