fix admin eval command
This commit is contained in:
parent
d868427fc6
commit
42281010c5
1 changed files with 5 additions and 5 deletions
|
@ -198,13 +198,13 @@ async def sql(ctx, *, query):
|
|||
|
||||
@bot.command(hidden=True, name="eval")
|
||||
@commands.is_owner()
|
||||
async def admin_eval(self, ctx, *, body: str):
|
||||
async def admin_eval(ctx, *, body: str):
|
||||
env = {
|
||||
"bot": self.bot,
|
||||
"bot": ctx.bot,
|
||||
"ctx": ctx,
|
||||
"channel": ctx.message.channel,
|
||||
"author": ctx.message.author,
|
||||
"guild": ctx.message.guild,
|
||||
"channel": ctx.channel,
|
||||
"author": ctx.author,
|
||||
"guild": ctx.guild,
|
||||
"message": ctx.message,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue