Plugin API

November 2, 2020 ยท View on GitHub

NOTE: This file is generated automatically.

Scroll down to PluginAPI for a list of properties available to plugins.

Typedefs

PluginAPI : object
PluginCommandsAPI : object
PluginAttachmentsAPI : object
PluginLogsAPI : object
PluginHooksAPI : object
PluginDisplayRolesAPI : displayRoles
PluginThreadsAPI : threads
PluginWebServerAPI : express.Application
PluginFormattersAPI : FormattersExport

PluginAPI : object

Kind: global typedef
Properties

NameType
botClient
knexKnex
configModmailConfig
commandsPluginCommandsAPI
attachmentsPluginAttachmentsAPI
logsPluginLogsAPI
hooksPluginHooksAPI
formatsPluginFormattersAPI
webserverPluginWebServerAPI
threadsPluginThreadsAPI
displayRolesPluginDisplayRolesAPI

PluginCommandsAPI : object

Kind: global typedef
Properties

NameType
managerCommandManager
addGlobalCommandAddGlobalCommandFn
addInboxServerCommandAddInboxServerCommandFn
addInboxThreadCommandAddInboxThreadCommandFn
addAliasAddAliasFn

PluginAttachmentsAPI : object

Kind: global typedef
Properties

NameType
addStorageTypeAddAttachmentStorageTypeFn
downloadAttachmentDownloadAttachmentFn
saveAttachmentSaveAttachmentFn

PluginLogsAPI : object

Kind: global typedef
Properties

NameType
addStorageTypeAddLogStorageTypeFn
saveLogToStorageSaveLogToStorageFn
getLogUrlGetLogUrlFn
getLogFileGetLogFileFn
getLogCustomResponseGetLogCustomResponseFn

PluginHooksAPI : object

Kind: global typedef
Properties

NameType
beforeNewThreadAddBeforeNewThreadHookFn
afterThreadCloseAddAfterThreadCloseHookFn

PluginDisplayRolesAPI : displayRoles

Kind: global typedef
See: https://github.com/Dragory/modmailbot/blob/master/src/data/displayRoles.js

PluginThreadsAPI : threads

Kind: global typedef
See: https://github.com/Dragory/modmailbot/blob/master/src/data/threads.js

PluginWebServerAPI : express.Application

Kind: global typedef
See: https://expressjs.com/en/api.html#app

PluginFormattersAPI : FormattersExport

Kind: global typedef
See: https://github.com/Dragory/modmailbot/blob/master/src/formatters.js