Add owner format ovverride

This commit is contained in:
EEKIM10 2023-05-11 22:39:20 +01:00
parent 823b87f049
commit 58936ab4ae

View file

@ -1160,14 +1160,15 @@ class OtherCog(commands.Cog):
if formats[fmt]["format"] == _format:
_format = fmt
break
elif not await self.bot.is_owner(ctx.user):
return await ctx.edit(
embed=discord.Embed(
title="Error",
description="Invalid format %r. pass `list-formats:True` to see a list of formats." % _fmt,
colour=discord.Colour.red()
else:
if not await self.bot.is_owner(ctx.user):
return await ctx.edit(
embed=discord.Embed(
title="Error",
description="Invalid format %r. pass `list-formats:True` to see a list of formats." % _fmt,
colour=discord.Colour.red()
)
)
)
MAX_SIZE_MB = ctx.guild.filesize_limit / 1024 / 1024
if MAX_SIZE_MB == 8.0: