1
0
Fork 0
mirror of synced 2024-05-28 00:09:39 +12:00

Remove custom calls

This commit is contained in:
phxntxm 2018-10-04 14:36:01 -05:00
parent c2650ace52
commit ff4eb301c6

View file

@ -356,9 +356,6 @@ class HelpPaginator(Pages):
self.description = inspect.getdoc(cog) self.description = inspect.getdoc(cog)
self.prefix = cleanup_prefix(ctx.bot, ctx.prefix) self.prefix = cleanup_prefix(ctx.bot, ctx.prefix)
# no longer need the database
await ctx.release()
return self return self
@classmethod @classmethod
@ -379,7 +376,6 @@ class HelpPaginator(Pages):
self.description = command.help or 'No help given.' self.description = command.help or 'No help given.'
self.prefix = cleanup_prefix(ctx.bot, ctx.prefix) self.prefix = cleanup_prefix(ctx.bot, ctx.prefix)
await ctx.release()
return self return self
@classmethod @classmethod
@ -410,7 +406,6 @@ class HelpPaginator(Pages):
self = cls(ctx, nested_pages, per_page=1) # this forces the pagination session self = cls(ctx, nested_pages, per_page=1) # this forces the pagination session
self.prefix = cleanup_prefix(ctx.bot, ctx.prefix) self.prefix = cleanup_prefix(ctx.bot, ctx.prefix)
await ctx.release()
# swap the get_page implementation with one that supports our style of pagination # swap the get_page implementation with one that supports our style of pagination
self.get_page = self.get_bot_page self.get_page = self.get_bot_page