예제 #1
0
    async def unload(self, ctx, extension):
        if extension == 'setting':
            return await ctx.send(
                embed=UI.error_embed("Dilarang unload setting 😠"))

        self.bot.unload_extension(f'cogs.{extension}')
        await ctx.message.add_reaction('👍')
예제 #2
0
    async def on_command_error(self, ctx, error):
        error = error.original if hasattr(error, 'original') else error
        if hasattr(ctx.command, 'on_error'):
            return

        if debug:
            await ctx.send(embed=UI.error_embed(error))

        raise error