UNPKG

axoncore

Version:

The best fully featured discord bot framework. Universal Client, Command and Event handler.

20 lines (16 loc) 391 B
import User from '../../definitions/User'; /** * @typedef {import('eris').User} user * @typedef {import('eris').PrivateChannel} PrivateChannel */ class ErisUser extends User { /** * @param {user} user * @returns {PrivateChannel} * @memberof ErisUser */ getDM(user) { return this.lib.botClient.getDMChannel(user.id); } } export default ErisUser;