# 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
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 | FormattersExport
|
## 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
|