# Plugin API **NOTE:** This file is generated automatically. Scroll down to [PluginAPI](#PluginAPI) for a list of properties available to plugins. ## Typedefs
PluginAPI : object
PluginCommandsAPI : object
PluginAttachmentsAPI : object
PluginHooksAPI : object
## PluginAPI : object **Kind**: global typedef **Properties** | Name | Type | | --- | --- | | bot | Client | | knex | Knex | | config | ModmailConfig | | commands | [PluginCommandsAPI](#PluginCommandsAPI) | | attachments | [PluginAttachmentsAPI](#PluginAttachmentsAPI) | | 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 | ## PluginHooksAPI : object **Kind**: global typedef **Properties** | Name | Type | | --- | --- | | beforeNewThread | AddBeforeNewThreadHookFn |