mirror of
https://github.com/sern-handler/website
synced 2026-07-05 14:09:45 +00:00
doc update
This commit is contained in:
@@ -7,8 +7,8 @@ title: "@sern/handler"
|
||||
|
||||
## Namespaces
|
||||
|
||||
- [Presence](/v3/api/namespaces/presence/readme/)
|
||||
- [Sern](/v3/api/namespaces/sern/readme/)
|
||||
- [Presence](/v3/api/namespacespresence/readme/)
|
||||
- [Sern](/v3/api/namespacessern/readme/)
|
||||
|
||||
## Enumerations
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ array of dependencies, in the same order of keys provided
|
||||
## Since
|
||||
|
||||
3.0.0
|
||||
The plural version of [Service](../../../../../../v3/api/functions/service)
|
||||
The plural version of [Service](../../../../../../../../v3/api/functions/service)
|
||||
|
||||
## Source
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ title: "discordEvent"
|
||||
> **discordEvent**\<`T`\>(`mod`): [`EventModule`](/v3/api/type-aliases/eventmodule/)
|
||||
|
||||
Create event modules from discord.js client events,
|
||||
This is an [eventModule](../../../../../../v3/api/functions/eventmodule) for discord events,
|
||||
This is an [eventModule](../../../../../../../../v3/api/functions/eventmodule) for discord events,
|
||||
where typings can be very bad.
|
||||
|
||||
## Type parameters
|
||||
|
||||
21
src/content/docs/v3/api/namespaces/Presence/README.md
Normal file
21
src/content/docs/v3/api/namespaces/Presence/README.md
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
editUrl: false
|
||||
next: false
|
||||
prev: false
|
||||
title: "Presence"
|
||||
---
|
||||
|
||||
## Index
|
||||
|
||||
### Interfaces
|
||||
|
||||
- [Result](/v3/api/namespacespresenceinterfaces/result/)
|
||||
|
||||
### Type Aliases
|
||||
|
||||
- [Config](/v3/api/namespacespresencetype-aliases/config/)
|
||||
|
||||
### Functions
|
||||
|
||||
- [module](/v3/api/namespacespresencefunctions/module/)
|
||||
- [of](/v3/api/namespacespresencefunctions/of/)
|
||||
@@ -5,7 +5,7 @@ prev: false
|
||||
title: "module"
|
||||
---
|
||||
|
||||
> **module**\<`T`\>(`conf`): [`Config`](/v3/api/namespaces/presence/type-aliases/config/)\<`T`\>
|
||||
> **module**\<`T`\>(`conf`): [`Config`](/v3/api/namespacespresencetype-aliases/config/)\<`T`\>
|
||||
|
||||
A small wrapper to provide type inference.
|
||||
Create a Presence module which **MUST** be put in a file called presence.(language-extension)
|
||||
@@ -17,11 +17,11 @@ adjacent to the file where **Sern.init** is CALLED.
|
||||
|
||||
## Parameters
|
||||
|
||||
• **conf**: [`Config`](/v3/api/namespaces/presence/type-aliases/config/)\<`T`\>
|
||||
• **conf**: [`Config`](/v3/api/namespacespresencetype-aliases/config/)\<`T`\>
|
||||
|
||||
## Returns
|
||||
|
||||
[`Config`](/v3/api/namespaces/presence/type-aliases/config/)\<`T`\>
|
||||
[`Config`](/v3/api/namespacespresencetype-aliases/config/)\<`T`\>
|
||||
|
||||
## Source
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ Create a Presence body which can be either:
|
||||
|
||||
## Parameters
|
||||
|
||||
• **root**: `Omit`\<[`Result`](/v3/api/namespaces/presence/interfaces/result/), `"repeat"` \| `"onRepeat"`\>
|
||||
• **root**: `Omit`\<[`Result`](/v3/api/namespacespresenceinterfaces/result/), `"repeat"` \| `"onRepeat"`\>
|
||||
|
||||
## Returns
|
||||
|
||||
@@ -21,7 +21,7 @@ Create a Presence body which can be either:
|
||||
|
||||
### once()
|
||||
|
||||
> **once**: () => `Omit`\<[`Result`](/v3/api/namespaces/presence/interfaces/result/), `"repeat"` \| `"onRepeat"`\>
|
||||
> **once**: () => `Omit`\<[`Result`](/v3/api/namespacespresenceinterfaces/result/), `"repeat"` \| `"onRepeat"`\>
|
||||
|
||||
#### Example
|
||||
|
||||
@@ -37,7 +37,7 @@ Presence
|
||||
|
||||
#### Returns
|
||||
|
||||
`Omit`\<[`Result`](/v3/api/namespaces/presence/interfaces/result/), `"repeat"` \| `"onRepeat"`\>
|
||||
`Omit`\<[`Result`](/v3/api/namespacespresenceinterfaces/result/), `"repeat"` \| `"onRepeat"`\>
|
||||
|
||||
### repeated()
|
||||
|
||||
|
||||
@@ -29,15 +29,15 @@ title: "Result"
|
||||
|
||||
### onRepeat()?
|
||||
|
||||
> `optional` **onRepeat**: (`previous`) => [`Result`](/v3/api/namespaces/presence/interfaces/result/)
|
||||
> `optional` **onRepeat**: (`previous`) => [`Result`](/v3/api/namespacespresenceinterfaces/result/)
|
||||
|
||||
#### Parameters
|
||||
|
||||
• **previous**: [`Result`](/v3/api/namespaces/presence/interfaces/result/)
|
||||
• **previous**: [`Result`](/v3/api/namespacespresenceinterfaces/result/)
|
||||
|
||||
#### Returns
|
||||
|
||||
[`Result`](/v3/api/namespaces/presence/interfaces/result/)
|
||||
[`Result`](/v3/api/namespacespresenceinterfaces/result/)
|
||||
|
||||
#### Source
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ title: "Config"
|
||||
|
||||
### execute()
|
||||
|
||||
> **execute**: (...`v`) => [`Result`](/v3/api/namespaces/presence/interfaces/result/)
|
||||
> **execute**: (...`v`) => [`Result`](/v3/api/namespacespresenceinterfaces/result/)
|
||||
|
||||
#### Parameters
|
||||
|
||||
@@ -23,7 +23,7 @@ title: "Config"
|
||||
|
||||
#### Returns
|
||||
|
||||
[`Result`](/v3/api/namespaces/presence/interfaces/result/)
|
||||
[`Result`](/v3/api/namespacespresenceinterfaces/result/)
|
||||
|
||||
### inject?
|
||||
|
||||
|
||||
12
src/content/docs/v3/api/namespaces/Sern/README.md
Normal file
12
src/content/docs/v3/api/namespaces/Sern/README.md
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
editUrl: false
|
||||
next: false
|
||||
prev: false
|
||||
title: "Sern"
|
||||
---
|
||||
|
||||
## Index
|
||||
|
||||
### Functions
|
||||
|
||||
- [init](/v3/api/namespacessernfunctions/init/)
|
||||
@@ -7,7 +7,7 @@ title: "SernOptionsData"
|
||||
|
||||
> **SernOptionsData**: [`SernSubCommandData`](/v3/api/interfaces/sernsubcommanddata/) \| [`SernSubCommandGroupData`](/v3/api/interfaces/sernsubcommandgroupdata/) \| `APIApplicationCommandBasicOption` \| [`SernAutocompleteData`](/v3/api/interfaces/sernautocompletedata/)
|
||||
|
||||
Type that replaces autocomplete with [SernAutocompleteData](../../../../../../v3/api/interfaces/sernautocompletedata)
|
||||
Type that replaces autocomplete with [SernAutocompleteData](../../../../../../../../v3/api/interfaces/sernautocompletedata)
|
||||
|
||||
## Source
|
||||
|
||||
|
||||
Reference in New Issue
Block a user