UNPKG

euralink

Version:

🎵 The most advanced, blazing-fast Lavalink client for Node.js with SponsorBlock, real-time lyrics, 60% less RAM usage, and the ultimate music bot experience.

19 lines (17 loc) • 464 B
class Plugin { constructor(name) { if (!name) throw new Error('[Plugin] Plugin name is required'); this.name = name; } load(eura) { if (eura && typeof eura.emit === 'function') { eura.emit('pluginLoaded', this); } } unload(eura) { if (eura && typeof eura.emit === 'function') { eura.emit('pluginUnloaded', this); } } } module.exports = { Plugin };