mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
Add owner format ovverride
This commit is contained in:
parent
823b87f049
commit
58936ab4ae
1 changed files with 8 additions and 7 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue