Skip to content

Commit

Permalink
allow passing search query
Browse files Browse the repository at this point in the history
  • Loading branch information
greeeen-dev committed Aug 13, 2024
1 parent 33f135c commit 10c2daf
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions cogs/sysmgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -2055,7 +2055,7 @@ async def uiemojis(self, ctx, *, emojipack):
await ctx.send(f'{self.bot.ui_emojis.error} Could not activate emoji pack.')

@commands.command(description=language.desc('sysmgr.help'))
async def help(self,ctx):
async def help(self,ctx,query=None):
selector = language.get_selector(ctx)
panel = 0
limit = 20
Expand All @@ -2065,9 +2065,16 @@ async def help(self,ctx):
descmatch = False
cogname = ''
cmdname = ''
query = ''
msg = None
interaction = None
if not query:
query = ''
else:
panel = 1
cogname = 'search'
namematch = True
descmatch = True
match = 0

# Command overrides - these commands will be shown regardless of permissions.
# Useful if cooldowns cause checks to fail
Expand Down

0 comments on commit 10c2daf

Please sign in to comment.