Skip to content

Commit

Permalink
chore: add missed option
Browse files Browse the repository at this point in the history
  • Loading branch information
kravetsone committed Jul 13, 2024
1 parent 4a76334 commit b27f00c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/plugins/official/autoload.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export default (bot: BotType) =>
| pattern? | string \| string[] | "\*\*\/\*.{ts,js,cjs,mjs}" | [Glob patterns](<https://en.wikipedia.org/wiki/Glob_(programming)>) |
| path? | string | "./commands" | Path to the folder |
| import? | string \| (file: any) => string | "default" | Import a specific `import` from a file |
| failGlob? | boolean | true | Throws an error if no matches are found |
| onLoad? | (params: { absolute: string; relative: string }) => unknown | | Hook that is called when loading a file |
| onFinish? | (paths: { absolute: string; relative: string }[]) => unknown; | | Hook that is called after loading all files |
| fdir? | [Options](https://github.com/thecodrr/fdir/blob/HEAD/documentation.md#method-chaining-alternative) | | Options to configure [fdir](https://github.com/thecodrr/fdir) |
Expand Down

0 comments on commit b27f00c

Please sign in to comment.