big help upgrades

- short descriptions for command list
  - argument descriptions
  - render argument list on detailed help page
This commit is contained in:
derpystuff 2022-12-06 10:26:34 +01:00
parent 5e5a738b74
commit f9c627ada1
55 changed files with 114 additions and 30 deletions

View file

@ -48,12 +48,13 @@ module.exports = {
aliases: ['r'],
metadata: {
description: 'Returns search results from reddit. Allows global and subreddit-specific search.',
description_short: 'Reddit Search',
examples: ['reddit r/otters'],
category: 'search',
usage: 'reddit [r/<subreddit>] <query> [-type image]'
},
args: [
{ default: "all", name: "type", type: "image" }
{ default: "all", name: "type", type: "image", help: "Types of post the search query should return" }
],
run: async (context, args) => {
context.triggerTyping();