SHow an error message when trying to use capture_full_page w/o firefox

This commit is contained in:
Nexus 2023-03-14 10:44:56 +00:00
parent ec9f8417f4
commit b90aa2367d
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -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()