Creating modmail channel with more permissions for Enso

pull/8/head
sgoudham 4 years ago
parent 1d1212c929
commit 4d95a04668

@ -157,14 +157,18 @@ class Modmail(Cog):
@group(invoke_without_command=True, usage="`[argument...]`") @group(invoke_without_command=True, usage="`[argument...]`")
@has_permissions(administrator=True) @has_permissions(administrator=True)
@bot_has_permissions(embed_links=True, add_reactions=True, manage_channels=True) @bot_has_permissions(embed_links=True, read_messages=True, manage_messages=True,
manage_channels=True, read_message_history=True,
send_messages=True, attach_files=True)
async def modmail(self, ctx): async def modmail(self, ctx):
"""Setup/Update/Delete Modmail System""" """Setup/Update/Delete Modmail System"""
pass pass
@modmail.command() @modmail.command()
@has_permissions(administrator=True) @has_permissions(administrator=True)
@bot_has_permissions(embed_links=True, add_reactions=True, manage_channels=True) @bot_has_permissions(embed_links=True, read_messages=True, manage_messages=True,
manage_channels=True, read_message_history=True,
send_messages=True, attach_files=True)
async def setup(self, ctx, channelID: int): async def setup(self, ctx, channelID: int):
""" """
Setup Modmail System Setup Modmail System
@ -266,7 +270,9 @@ class Modmail(Cog):
@modmail.command() @modmail.command()
@has_permissions(administrator=True) @has_permissions(administrator=True)
@bot_has_permissions(embed_links=True, add_reactions=True, manage_channels=True) @bot_has_permissions(embed_links=True, read_messages=True, manage_messages=True,
manage_channels=True, read_message_history=True,
send_messages=True, attach_files=True)
async def update(self, ctx, channelID: int): async def update(self, ctx, channelID: int):
""" """
Update the Channel that the Modmail is logged to Update the Channel that the Modmail is logged to
@ -328,7 +334,9 @@ class Modmail(Cog):
@modmail.command() @modmail.command()
@has_permissions(administrator=True) @has_permissions(administrator=True)
@bot_has_permissions(embed_links=True, add_reactions=True, manage_channels=True) @bot_has_permissions(embed_links=True, read_messages=True, manage_messages=True,
manage_channels=True, read_message_history=True,
send_messages=True, attach_files=True)
async def delete(self, ctx): async def delete(self, ctx):
"""Delete the Entire Modmail System from the Guild""" """Delete the Entire Modmail System from the Guild"""

Loading…
Cancel
Save