Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Plugin<ConfigType>

Type parameters

  • ConfigType

Hierarchy

Index

Constructors

constructor

  • new Plugin<ConfigType>(context: DiscordBot, _config?: ConfigType): Plugin<ConfigType>

Properties

Protected config

config: ConfigType

Protected context

context: DiscordBot

Private handlers

handlers: {} = {}

Type declaration

Static defaultConfig

defaultConfig: any

Methods

clearHandlers

  • clearHandlers(): void

declareHandler

Abstract extract

  • Removes the plugin's hooks from the bot. It's up to the plugin developer to not break anything.

    Parameters

    • context: DiscordBot

      the Discord bot context to remove plugin elements from.

    Returns void

Abstract inject

  • Injects the plugin's hooks into the bot. It's up to the plugin developer to not break anything.

    Parameters

    • context: DiscordBot

      the Discord bot context to inject into.

    Returns void

Generated using TypeDoc