Owner verification for Admin cog

This commit is contained in:
voXrey 2024-06-01 20:03:20 +02:00
parent 7675b24af2
commit dfe9d3da74
1 changed files with 4 additions and 0 deletions

View File

@ -111,6 +111,10 @@ class Admin(MyCog):
# Add cogs commands group to cog # Add cogs commands group to cog
self.bot.tree.add_command(CogGroup(self.bot)) 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): async def setup(bot):
await bot.add_cog(Admin(bot)) await bot.add_cog(Admin(bot))