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")
|
@bot.command(hidden=True, name="eval")
|
||||||
@commands.is_owner()
|
@commands.is_owner()
|
||||||
async def admin_eval(self, ctx, *, body: str):
|
async def admin_eval(ctx, *, body: str):
|
||||||
env = {
|
env = {
|
||||||
"bot": self.bot,
|
"bot": ctx.bot,
|
||||||
"ctx": ctx,
|
"ctx": ctx,
|
||||||
"channel": ctx.message.channel,
|
"channel": ctx.channel,
|
||||||
"author": ctx.message.author,
|
"author": ctx.author,
|
||||||
"guild": ctx.message.guild,
|
"guild": ctx.guild,
|
||||||
"message": ctx.message,
|
"message": ctx.message,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue