mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-06 09:22:31 -05:00
[Core] Moved checks.py to main core package
This commit is contained in:
7
core/checks.py
Normal file
7
core/checks.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from discord.ext import commands
|
||||
|
||||
|
||||
def is_owner(**kwargs):
|
||||
async def check(ctx):
|
||||
return await ctx.bot.is_owner(ctx.author, **kwargs)
|
||||
return commands.check(check)
|
||||
Reference in New Issue
Block a user