How I have done this ._.
This commit is contained in:
parent
4e9f302854
commit
533f0c10c9
1 changed files with 3 additions and 3 deletions
|
@ -27,7 +27,7 @@ class Extension(commands.Cog):
|
|||
async def extension_load(self, ctx: commands.Context, name: str):
|
||||
try:
|
||||
self.bot.load_extension(name)
|
||||
except Extension as e:
|
||||
except Exception as e:
|
||||
await ctx.message.add_reaction("\u26a0")
|
||||
else:
|
||||
await ctx.message.add_reaction("\U0001f44d")
|
||||
|
@ -37,7 +37,7 @@ class Extension(commands.Cog):
|
|||
async def extension_unload(self, ctx: commands.Context, name: str):
|
||||
try:
|
||||
self.bot.unload_extension(name)
|
||||
except Extension as e:
|
||||
except Exception as e:
|
||||
await ctx.message.add_reaction("\u26a0")
|
||||
else:
|
||||
await ctx.message.add_reaction("\U0001f44d")
|
||||
|
@ -48,7 +48,7 @@ class Extension(commands.Cog):
|
|||
try:
|
||||
self.bot.unload_extension(name)
|
||||
self.bot.load_extension(name)
|
||||
except Extension as e:
|
||||
except Exception as e:
|
||||
await ctx.message.add_reaction("\u26a0")
|
||||
else:
|
||||
await ctx.message.add_reaction("\U0001f44d")
|
||||
|
|
Reference in a new issue