UNPKG

discord-vatron

Version:

Módulo para facilitar la interacción con la API de Discord

16 lines (13 loc) 472 B
module.exports = class EstadoVoz { constructor(datos, bot, sv) { this._datos = datos; this._bot = bot; this.servidor = sv; } get miembro() { return this.servidor.miembros.has(this._datos.user_id) ? this.servidor.miembros.get(this._datos.user_id) : null; } get canal() { return this.servidor.canales.has(this._datos.channel_id) ? this.servidor.canales.get(this._datos.channel_id) : null; } }