File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -268,7 +268,7 @@ async def plugin_enabled(self, ctx):
268
268
269
269
@plugin .command (name = 'registry' , aliases = ['list' ])
270
270
@checks .has_permissions (PermissionLevel .OWNER )
271
- async def plugin_registry (self , ctx , plugin_name = None ):
271
+ async def plugin_registry (self , ctx , * , plugin_name : str = None ):
272
272
"""Shows a list of all approved plugins."""
273
273
274
274
embeds = []
@@ -285,9 +285,10 @@ def find_index(name):
285
285
return index
286
286
index += 1
287
287
288
- if plugin_name and plugin_name in self .registry :
288
+ index = 0
289
+ if plugin_name in self .registry :
289
290
index = find_index (plugin_name )
290
- else :
291
+ elif plugin_name is not None :
291
292
return await ctx .send (embed = discord .Embed (
292
293
color = discord .Color .red (),
293
294
description = f'Could not find a plugin with name "{ plugin_name } " within the registry.'
You can’t perform that action at this time.
0 commit comments