async def search(self, ctx): if ctx.invoked_subcommand: return msg = "```\n" msg += "search\n" msg += extract_commands(self.search.commands, margin=" ")[1][:-2] msg += "```" await ctx.channel.send(msg)
async def react_role(self, ctx: Context): if ctx.invoked_subcommand: return msg = "```\n" msg += "reactrole\n" msg += extract_commands(self.react_role.commands, margin=" ")[1][:-2] msg += "```" await ctx.channel.send(msg)
async def opt(self, ctx:Context): if ctx.invoked_subcommand: return msg = "```\n" msg += "opt\n" msg += extract_commands(self.opt.commands, margin=" ")[1][:-2] msg += "```" sent = await ctx.channel.send(msg) await delete_message(ctx, [ctx.message, sent])
async def update_react_role(self, ctx: Context): if ctx.invoked_subcommand: return msg = "```\n" msg += "update\n" msg += extract_commands(self.update_react_role.commands, margin=" ")[1][:-2] msg += "```" await ctx.send(msg)
async def change_on_call(self, ctx: Context): if ctx.invoked_subcommand: return msg = "```\n" msg += "onCall\n" msg += extract_commands(self.change_on_call.commands, margin=" ")[1][:-2] msg += "```" await ctx.channel.send(msg)