fixed bug in view_code
This commit is contained in:
parent
3531459b03
commit
dc51b4e6b6
@ -198,7 +198,7 @@ class Admin:
|
||||
@commands.is_owner()
|
||||
async def view_code(self, ctx, code_name):
|
||||
pag = utils.Paginator(self.bot, prefix='```py', suffix='```')
|
||||
pag.add(inspect.getsource(self.bot.get_command(code_name).callback))
|
||||
pag.add(inspect.getsource(self.bot.all_commands[code_name].callback))
|
||||
for page in pag.pages():
|
||||
await ctx.send(page)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user