feat: add a few more admonitions

This commit is contained in:
Jacob Nguyen
2022-08-13 13:55:04 -05:00
parent a128e8dee6
commit f18d4ded88
2 changed files with 9 additions and 2 deletions

View File

@@ -77,14 +77,18 @@ Commands are straight forward. Keep in mind, every other property on the command
optional **except** the type and execute function.
# Context class
The provided Context class helps with modules of `CommandType.Both` (A mixture of slash / legacy commands)
In short, Slash Commands, Both Commands, Text Commands carry a Context data structure
The provided Context class helps with modules of `CommandType.Both` (A mixture of slash / legacy commands).
The Context class is passed into modules with type :
- `CommandType.Both`
- `CommandType.Slash`
- `CommandType.Text`
This data structure helps interop between legacy commands and slash commands with ease.
:::note
View the [docs](../../api/classes/Context.md)
:::
Typescript:
```typescript
export default commandModule({

View File

@@ -8,3 +8,6 @@ sidebar_position: 0
- [/docs/api](../docs/api) contains autogenerated documentation of our codebase using [typedoc](https://typedoc.org/)
- [/docs/guide](../docs/guide) contains a basic startup guide and details to get started with sern faster!
:::tip
This site is open source! Please do contribute if you find any bugs, typos, or sections in need of improvements.
:::