BetterDiscordApp-v2/client/src/modules/plugin.js

30 lines
728 B
JavaScript
Raw Normal View History

2018-01-30 16:59:27 +01:00
/**
* BetterDiscord Plugin Base
* Copyright (c) 2015-present Jiiks/JsSucks - https://github.com/Jiiks / https://github.com/JsSucks
* All rights reserved.
* https://betterdiscord.net
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
2018-02-22 17:19:35 +01:00
import PluginManager from './pluginmanager';
2018-03-06 01:24:14 +01:00
import Content from './content';
2018-03-06 01:24:14 +01:00
export default class Plugin extends Content {
2018-02-13 17:06:36 +01:00
get type() { return 'plugin' }
2018-03-06 01:24:14 +01:00
get start() { return this.enable }
get stop() { return this.disable }
2018-01-30 16:59:27 +01:00
reload(force) {
return PluginManager.reloadPlugin(this, force);
}
unload(force) {
return PluginManager.unloadPlugin(this, force);
2018-02-21 18:46:27 +01:00
}
2018-01-30 16:59:27 +01:00
}