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

23 lines
564 B
JavaScript
Raw Normal View History

2018-02-01 03:36:47 +01:00
/**
* BetterDiscord Event Listener Module
* 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-01 04:00:28 +01:00
import Module from './module';
2018-02-01 03:36:47 +01:00
import Events from './events';
2018-02-01 04:00:28 +01:00
export default class extends Module {
2018-02-01 03:36:47 +01:00
2018-02-01 04:00:28 +01:00
events() {
2018-08-15 08:01:47 +02:00
for (const event of this.eventBindings) {
2018-02-01 03:36:47 +01:00
Events.on(event.id, event.callback);
}
}
}