The options for the default MessageCreateEvent | messageCreate event.

interface MessageCreateOptions {
    excludeBots?: boolean;
    globalTags?: string[];
    sendCodeError?: boolean;
    sendCodeErrorOnlyToOwners?: boolean;
    sendWhenError?: string | MessageEmbed;
}

Properties

excludeBots?: boolean

Exclude bot or not.

Default Value

true
globalTags?: string[]

A list of global tags to apply before the commands is executed.

sendCodeError?: boolean

Send the code error when a command execution is failed and an error is thrown.

Default Value

true
sendCodeErrorOnlyToOwners?: boolean

Send the code error only to owners when a command execution is failed and an error is thrown.

Default Value

true
sendWhenError?: string | MessageEmbed

A message to send to anyone (or not-owners if sendCodeErrorOnlyToOwners is set) when a command execution is failed and an error is thrown.

Generated using TypeDoc