Skip to content

Commit a0f4d21

Browse files
committed
Have the bot add itself into the modmail category on setup
1 parent a5bf6f0 commit a0f4d21

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bot.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,8 @@ async def on_command_error(self, ctx, error):
280280
def overwrites(self, ctx):
281281
"""Permision overwrites for the guild."""
282282
overwrites = {
283-
ctx.guild.default_role: discord.PermissionOverwrite(read_messages=False)
283+
ctx.guild.default_role: discord.PermissionOverwrite(read_messages=False),
284+
ctx.guild.me: discord.PermissionOverwrite(read_messages=True)
284285
}
285286

286287
for role in ctx.guild.roles:

0 commit comments

Comments
 (0)