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('👍')
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