Slashasaurus
  • Introduction
  • Quick Start
    • Pages Quick Start
  • Context Menu Commands
  • Interfaces
    • SlashasaurusClientOptions
Powered by GitBook
On this page
  1. Interfaces

SlashasaurusClientOptions

PreviousContext Menu Commands

Last updated 3 years ago

Option
Type
Description

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 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.

pino