Interface: ClientOptions
types/types.ClientOptions
Properties
apikey
• Optional
apikey: string
You can request one from ctrlz.
Default
undefined
Defined in
authOptions
• Optional
authOptions: Omit
<Partial
<{ apikey?
: string
; bot?
: boolean
; loginkey?
: string
; staff?
: string
; user
: string
}>, "bot"
| "user"
| "apikey"
>
Options to pass to the auth event.
Defined in
blockBots
• Optional
blockBots: boolean
Whether to block bots
Default
options.bot
Defined in
blockSelf
• Optional
blockSelf: boolean
Whether to ignore events triggered by the current user.
Default
options.bot
Defined in
bot
• Optional
bot: boolean
Whether to mark the user as a bot. Cannot be changed after connecting.
Default
true
Defined in
helpCommandLimit
• Optional
helpCommandLimit: number
The amount of commands to show on one page of the help command.
Default
15
Defined in
helpSuffix
• Optional
helpSuffix: string
A suffix to add to the output of the help command.
Default
""
Defined in
mainPrefix
• Optional
mainPrefix: string
| RegExp
The main prefix to use in commands (for example, the help command will use this to tell the user what prefix they should use). This shouldn't have regex in it (although you can) because the average user can't read that. Set this to an empty string to disable the command system.
Default
"The first prefix passed in the constructor."
Defined in
printErrors
• Optional
printErrors: boolean
Whether to print errors to the console. Will not stop printing of fatal errors while loading files.
Default
true
Defined in
server
• Optional
server: string
The server to connect to.
Default
"wss://msgroom.windows96.net"
Defined in
socketIOOptions
• Optional
socketIOOptions: Partial
<ManagerOptions
& SocketOptions
>
Options to pass to socket.io's io() function.
Default
{}
Defined in
unescapeMessages
• Optional
unescapeMessages: boolean
Unescapes the incoming messages, meant for use in bots. It's recommended to disable this when making a custom client.
Default
true
Defined in
welcomeMessage
• Optional
welcomeMessage: string
A message to send when the bot joins.
Deprecated
This option has been removed. As a general rule, bots should not send messages if the user doesn't explicitly ask for them.