Change decorator which checks for owner
Add is_me decorator to checks.py
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
import discord
|
||||
|
||||
def is_rcon_admin(bot, ctx):
|
||||
|
||||
|
||||
def is_me():
|
||||
def predicate(ctx):
|
||||
return ctx.message.author.id == ctx.bot.owner_id
|
||||
return discord.ext.commands.check(predicate)
|
||||
|
||||
Reference in New Issue
Block a user