Skip to content

Commit 61b77e7

Browse files
committed
Fix permissions update on bot setup
1 parent dd4e730 commit 61b77e7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cogs/modmail.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ async def setup(self, ctx):
6767
'Consider setting permission groups to give access '
6868
'to roles or users the ability to use Modmail.\n'
6969
f'Type `{self.bot.prefix}permissions` for more info.')
70-
if not self.bot.config.permissions:
70+
71+
if not self.bot.config.get('permissions'):
7172
await self.bot.update_perms(PermissionLevel.REGULAR, -1)
7273
await self.bot.update_perms(PermissionLevel.OWNER, ctx.author.id)
7374

@@ -543,6 +544,7 @@ async def anonreply(self, ctx, *, msg: str=''):
543544
async with ctx.typing():
544545
await ctx.thread.reply(ctx.message, anonymous=True)
545546

547+
546548
@commands.command()
547549
@checks.has_permissions(PermissionLevel.SUPPORTER)
548550
@checks.thread_only()

0 commit comments

Comments
 (0)