|
|
@ -9,6 +9,7 @@ import mariadb
|
|
|
|
from discord import Embed
|
|
|
|
from discord import Embed
|
|
|
|
from discord import File
|
|
|
|
from discord import File
|
|
|
|
from discord.ext import commands
|
|
|
|
from discord.ext import commands
|
|
|
|
|
|
|
|
from discord.ext.commands import bot_has_permissions, has_permissions
|
|
|
|
|
|
|
|
|
|
|
|
import db
|
|
|
|
import db
|
|
|
|
from settings import enso_embedmod_colours, blank_space
|
|
|
|
from settings import enso_embedmod_colours, blank_space
|
|
|
@ -157,11 +158,15 @@ class Modmail(commands.Cog):
|
|
|
|
print(f"{self.__class__.__name__} Cog has been loaded\n-----")
|
|
|
|
print(f"{self.__class__.__name__} Cog has been loaded\n-----")
|
|
|
|
|
|
|
|
|
|
|
|
@commands.group(invoke_without_command=True)
|
|
|
|
@commands.group(invoke_without_command=True)
|
|
|
|
|
|
|
|
@has_permissions(manage_server=True)
|
|
|
|
|
|
|
|
@bot_has_permissions(adminstrator=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(manage_server=True)
|
|
|
|
|
|
|
|
@bot_has_permissions(adminstrator=True)
|
|
|
|
async def setup(self, ctx, channelID: int):
|
|
|
|
async def setup(self, ctx, channelID: int):
|
|
|
|
"""Setup Modmail System"""
|
|
|
|
"""Setup Modmail System"""
|
|
|
|
|
|
|
|
|
|
|
@ -253,6 +258,8 @@ class Modmail(commands.Cog):
|
|
|
|
return
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
@modmail.command()
|
|
|
|
@modmail.command()
|
|
|
|
|
|
|
|
@has_permissions(manage_server=True)
|
|
|
|
|
|
|
|
@bot_has_permissions(adminstrator=True)
|
|
|
|
async def update(self, ctx, channelID: int):
|
|
|
|
async def update(self, ctx, channelID: int):
|
|
|
|
"""Update Modmail Channel"""
|
|
|
|
"""Update Modmail Channel"""
|
|
|
|
|
|
|
|
|
|
|
@ -304,6 +311,8 @@ class Modmail(commands.Cog):
|
|
|
|
return
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
@modmail.command()
|
|
|
|
@modmail.command()
|
|
|
|
|
|
|
|
@has_permissions(manage_server=True)
|
|
|
|
|
|
|
|
@bot_has_permissions(adminstrator=True)
|
|
|
|
async def delete(self, ctx):
|
|
|
|
async def delete(self, ctx):
|
|
|
|
"""Delete Modmail System"""
|
|
|
|
"""Delete Modmail System"""
|
|
|
|
|
|
|
|
|
|
|
|