Skip to content
This repository has been archived by the owner on Dec 4, 2022. It is now read-only.

Commit

Permalink
fix prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMoksej authored Dec 17, 2020
1 parent 875f192 commit bfdeb05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cogs/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ async def prefix(self, ctx, prefix: str = None):
""" Change bot's prefix in the server """

prefixs = await self.bot.db.fetchval("SELECT prefix FROM guilds WHERE guild_id = $1", ctx.guild.id)
if prefix is None and not ctx.author.guild_permissions.manage_guild:
if not prefix:
return await ctx.send(f"This server prefix is `{prefixs}`")

elif prefix and len(prefix) <= 6 and ctx.author.guild_permissions.manage_guild:
Expand Down

0 comments on commit bfdeb05

Please sign in to comment.