@@ -196,7 +196,7 @@ async def plugin_add(self, ctx, *, plugin_name: str):
196
196
197
197
try :
198
198
await self .load_plugin (* parsed_plugin )
199
- except DownloadError as exc :
199
+ except Exception as exc :
200
200
embed = discord .Embed (
201
201
description = f'Unable to load this plugin: { exc } .' ,
202
202
color = self .bot .main_color
@@ -214,13 +214,13 @@ async def plugin_add(self, ctx, *, plugin_name: str):
214
214
'*Please note: any plugin that you install is of your OWN RISK*' ,
215
215
color = self .bot .main_color
216
216
)
217
- await message . edit (embed = embed )
217
+ await ctx . send (embed = embed )
218
218
else :
219
219
embed = discord .Embed (
220
220
description = 'Invalid plugin name format: use username/repo/plugin.' ,
221
221
color = self .bot .main_color
222
222
)
223
- await message . edit (embed = embed )
223
+ await ctx . send (embed = embed )
224
224
225
225
@plugin .command (name = 'remove' , aliases = ['del' , 'delete' , 'rm' ])
226
226
@checks .has_permissions (PermissionLevel .OWNER )
@@ -345,7 +345,7 @@ async def plugin_enabled(self, ctx):
345
345
)
346
346
await ctx .send (embed = embed )
347
347
348
- @plugin .group (invoke_without_command = True , name = 'registry' , aliases = ['list' ])
348
+ @plugin .group (invoke_without_command = True , name = 'registry' , aliases = ['list' , 'info' ])
349
349
@checks .has_permissions (PermissionLevel .OWNER )
350
350
async def plugin_registry (self , ctx , * , plugin_name : str = None ):
351
351
"""Shows a list of all approved plugins."""
0 commit comments