1
0
mirror of https://github.com/Lightcord/Lightcord.git synced 2025-04-12 00:55:40 +02:00
2020-09-05 12:14:21 +02:00

12 lines
471 B
JavaScript

const {Dispatch: DispatchNative} = require('./discord_dispatch_'+process.platform+'.node');
function dispatchConstructor(jsonConfigString, updateCallback, errorCallback, analyticsCallback) {
const instance = new DispatchNative(jsonConfigString, updateCallback, errorCallback, analyticsCallback);
return {
command: instance.command.bind(instance),
destroy: instance.destroy.bind(instance),
};
}
module.exports = {Dispatch: dispatchConstructor};