Namespace: Sern
References
CommandExecutable
Re-exports CommandExecutable
EventExecutable
Re-exports EventExecutable
commandModule
Re-exports commandModule
controller
Re-exports controller
discordEvent
Re-exports discordEvent
eventModule
Re-exports eventModule
Functions
init
▸ init(wrapper
): void
Since
1.0.0
Example
src/index.ts
Sern.init({
defaultPrefix: '!',
commands: 'dist/commands',
events: 'dist/events',
containerConfig : {
get: useContainer
}
})
Parameters
Name | Type | Description |
---|---|---|
wrapper | Wrapper | Options to pass into sern. Function to start the handler up |
Returns
void
Defined in
makeDependencies
▸ makeDependencies<T
>(conf
): <V>(...keys
: [...V[]]) => MapDeps
<T
, V
>
Since
2.0.0
Type parameters
Name | Type |
---|---|
T | extends Dependencies |
Parameters
Name | Type | Description |
---|---|---|
conf | DependencyConfiguration <T > | a configuration for creating your project dependencies |
Returns
fn
▸ <V
>(...keys
): MapDeps
<T
, V
>
Type parameters
Name | Type |
---|---|
V | extends keyof T [] |
Parameters
Name | Type |
---|---|
...keys | [...V[]] |
Returns
MapDeps
<T
, V
>