# Plugin API **NOTE:** This file is generated automatically. Scroll down to [PluginAPI](#PluginAPI) for a list of properties available to plugins. ## Typedefs
object
object
object
object
object
displayRoles
threads
express.Application
FormattersExport
object
**Kind**: global typedef
**Properties**
| Name | Type |
| --- | --- |
| bot | Client
|
| knex | Knex
|
| config | ModmailConfig
|
| commands | [PluginCommandsAPI
](#PluginCommandsAPI) |
| attachments | [PluginAttachmentsAPI
](#PluginAttachmentsAPI) |
| logs | [PluginLogsAPI
](#PluginLogsAPI) |
| hooks | [PluginHooksAPI
](#PluginHooksAPI) |
| formats | [PluginFormattersAPI
](#PluginFormattersAPI) |
| webserver | [PluginWebServerAPI
](#PluginWebServerAPI) |
| threads | [PluginThreadsAPI
](#PluginThreadsAPI) |
| displayRoles | [PluginDisplayRolesAPI
](#PluginDisplayRolesAPI) |
## PluginCommandsAPI : object
**Kind**: global typedef
**Properties**
| Name | Type |
| --- | --- |
| manager | CommandManager
|
| addGlobalCommand | AddGlobalCommandFn
|
| addInboxServerCommand | AddInboxServerCommandFn
|
| addInboxThreadCommand | AddInboxThreadCommandFn
|
| addAlias | AddAliasFn
|
## PluginAttachmentsAPI : object
**Kind**: global typedef
**Properties**
| Name | Type |
| --- | --- |
| addStorageType | AddAttachmentStorageTypeFn
|
| downloadAttachment | DownloadAttachmentFn
|
## PluginLogsAPI : object
**Kind**: global typedef
**Properties**
| Name | Type |
| --- | --- |
| addStorageType | AddLogStorageTypeFn
|
| saveLogToStorage | SaveLogToStorageFn
|
| getLogUrl | GetLogUrlFn
|
| getLogFile | GetLogFileFn
|
| getLogCustomResponse | GetLogCustomResponseFn
|
## PluginHooksAPI : object
**Kind**: global typedef
**Properties**
| Name | Type |
| --- | --- |
| beforeNewThread | AddBeforeNewThreadHookFn
|
| afterThreadClose | AddAfterThreadCloseHookFn
|
## 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