SlashasaurusClientOptions

OptionTypeDescription

devServerId

string

This is the id of the discord server that will be considered your development server. This is where you will register commands to during development

logger

Logger?

You can pass any logger compatible with pino and slashasaurus will log some internal information to it

storePageState

Function?

This function will receive some data about a Page to be stored in persistent storage. If you want to use Pages this option is required.

getPageState

Function?

This function will receive a message id and must return the previously stored info about a Page. If you want to use Pages this option is required.

pageTtl

number?

The amount of time that a Page will stay in the cache after it was last interacted with. The default is 30 seconds.

Last updated