mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
SHow an error message when trying to use capture_full_page w/o firefox
This commit is contained in:
parent
ec9f8417f4
commit
b90aa2367d
1 changed files with 2 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue