From b90aa2367dfc22fe2e668a442aaa5d1ba4219487 Mon Sep 17 00:00:00 2001 From: nex Date: Tue, 14 Mar 2023 10:44:56 +0000 Subject: [PATCH] SHow an error message when trying to use capture_full_page w/o firefox --- cogs/other.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cogs/other.py b/cogs/other.py index c58a0d6..0c654b6 100644 --- a/cogs/other.py +++ b/cogs/other.py @@ -591,6 +591,8 @@ class OtherCog(commands.Cog): ), ): """Takes a screenshot of a URL""" + if capture_whole_page and browser != "firefox": + return await ctx.respond("The capture-full-page option is only available for firefox.") window_width = max(min(1080 * 6, window_width), 1080 // 6) window_height = max(min(1920 * 6, window_height), 1920 // 6) await ctx.defer()