Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions src/content/docs/v4/reference/config.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@ import { FileTree } from '@astrojs/starlight/components';
```js title='src/config.js'
export const commands = './dist/commands'
```

:::tip
`commands` also supports an array of folders!
```js title='src/config.js'
export const commands = ['./dist/commands', './dist/components']
```
This allows you to input your buttons, select menus, and modals separate from commands!
:::
We will pass this file so sern can start properly.

```js title='src/index.js'
Expand Down Expand Up @@ -68,10 +74,12 @@ export const OWNERS = ['182326315813306368']


:::caution
If you use javascript + common.js, star imports do not work. Please export an object default and put your configuration there.
```js
exports.default = {
commands : "./dist/commands",
}
Javascript + common.js is no longer supported! The following method will not work!
We use import/export context!
```diff
-exports.default = {
- commands : "./dist/commands",
-}
+export const commands = './dist/commands';
```
:::