mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 21:13:30 +01:00
User bot property
This commit is contained in:
@@ -30,6 +30,7 @@ var User = (function (_Equality) {
|
|||||||
this.discriminator = data.discriminator;
|
this.discriminator = data.discriminator;
|
||||||
this.id = data.id;
|
this.id = data.id;
|
||||||
this.avatar = data.avatar;
|
this.avatar = data.avatar;
|
||||||
|
this.bot = data.bot;
|
||||||
this.status = data.status || "offline";
|
this.status = data.status || "offline";
|
||||||
this.game = data.game || null;
|
this.game = data.game || null;
|
||||||
this.typing = {
|
this.typing = {
|
||||||
|
|||||||
@@ -8,6 +8,10 @@ function _inherits(subClass, superClass) { if (typeof superClass !== 'function'
|
|||||||
|
|
||||||
var Transform = require('stream').Transform;
|
var Transform = require('stream').Transform;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see https://github.com/reneraab/pcm-volume/blob/master/index.js Inspired by this script
|
||||||
|
*/
|
||||||
|
|
||||||
var Volume = (function (_Transform) {
|
var Volume = (function (_Transform) {
|
||||||
_inherits(Volume, _Transform);
|
_inherits(Volume, _Transform);
|
||||||
|
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ export default class User extends Equality{
|
|||||||
this.discriminator = data.discriminator;
|
this.discriminator = data.discriminator;
|
||||||
this.id = data.id;
|
this.id = data.id;
|
||||||
this.avatar = data.avatar;
|
this.avatar = data.avatar;
|
||||||
|
this.bot = data.bot;
|
||||||
this.status = data.status || "offline";
|
this.status = data.status || "offline";
|
||||||
this.game = data.game || null;
|
this.game = data.game || null;
|
||||||
this.typing = {
|
this.typing = {
|
||||||
|
|||||||
Reference in New Issue
Block a user