Preparing search index...
The search index is not available
pure-cat
pure-cat
Bot
Class Bot<T>
Type Parameters
T =
unknown
Hierarchy
Bot
Index
Constructors
constructor
Properties
client
id
logger
modules
store
Methods
login
register
use
Constructors
constructor
new
Bot
<
T
>
(
bot_id
:
string
, storage
:
string
, base_data
?:
T
)
:
Bot
<
T
>
Type Parameters
T =
unknown
Parameters
bot_id:
string
storage:
string
Optional
base_data:
T
Returns
Bot
<
T
>
Properties
client
client
:
Client
<
boolean
>
= ...
id
id
:
string
logger
logger
:
Logger
modules
modules
:
Module
<
unknown
>
[]
= []
store
store
:
Collection
<
T
>
Methods
login
login
(
token
:
string
)
:
Promise
<
string
>
Parameters
token:
string
Returns
Promise
<
string
>
register
register
(
token
:
string
)
:
Promise
<
boolean
>
Parameters
token:
string
Returns
Promise
<
boolean
>
use
use
(
module
:
Module
<
any
>
)
:
Bot
<
T
>
Parameters
module:
Module
<
any
>
Returns
Bot
<
T
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
pure-
cat
Bot
constructor
client
id
logger
modules
store
login
register
use
Generated using
TypeDoc