allow mod cog to access database
@@ -8,6 +8,8 @@ class Mod(commands.Cog):
self.bot = bot
self.d = self.bot.d
+ self.db = self.bot.get_cog('Database')
+
async def perm_check(self, author, victim):
if isinstance(author, discord.Member) and author.id == author.guild.owner.id: return True
guild_roles = author.guild.roles
