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:
|
if formats[fmt]["format"] == _format:
|
||||||
_format = fmt
|
_format = fmt
|
||||||
break
|
break
|
||||||
elif not await self.bot.is_owner(ctx.user):
|
else:
|
||||||
return await ctx.edit(
|
if not await self.bot.is_owner(ctx.user):
|
||||||
embed=discord.Embed(
|
return await ctx.edit(
|
||||||
title="Error",
|
embed=discord.Embed(
|
||||||
description="Invalid format %r. pass `list-formats:True` to see a list of formats." % _fmt,
|
title="Error",
|
||||||
colour=discord.Colour.red()
|
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
|
MAX_SIZE_MB = ctx.guild.filesize_limit / 1024 / 1024
|
||||||
if MAX_SIZE_MB == 8.0:
|
if MAX_SIZE_MB == 8.0:
|
||||||
|
|
Loading…
Reference in a new issue