UNPKG

mxtorie-handler-proxy

Version:

An advanced handler for fast developpment with a discordjs custom lib

19 lines 676 B
const Discord = require('discord.js-mxtorie') const {Collection} = require('mxtorie-utils') module.exports = class Mxtorie_Client extends Discord.Client { constructor(options = { intents: 32767, restTimeOffset: 0, defaultPrefix: '+' }) { super(options); this.setMaxListeners(0) this.prefix = {} this.commands = new Collection() this.aliases = new Collection() this.on('ready', () => { console.log(`> ${this.user.tag} logged | Handler by Lauryne x Jeotique`) this.guilds.cache.map(guild => this.prefix[guild.id] = options.defaultPrefix) }) } }