Owner verification for Admin cog
This commit is contained in:
parent
7675b24af2
commit
dfe9d3da74
|
@ -111,6 +111,10 @@ class Admin(MyCog):
|
|||
# Add cogs commands group to cog
|
||||
self.bot.tree.add_command(CogGroup(self.bot))
|
||||
|
||||
async def cog_check(self, ctx):
|
||||
admins = self.bot.owner_ids
|
||||
return ctx.author.id in admins
|
||||
|
||||
|
||||
async def setup(bot):
|
||||
await bot.add_cog(Admin(bot))
|
||||
|
|
Loading…
Reference in New Issue