mirror of
https://github.com/danbulant/discord.js
synced 2026-06-07 00:32:03 +00:00
Forgot to expose userAgent is base client
This commit is contained in:
parent
c5ccfab658
commit
4342bf39d4
1 changed files with 9 additions and 0 deletions
|
|
@ -24,6 +24,7 @@ export default class Client extends EventEmitter {
|
||||||
this.internal = new InternalClient(this);
|
this.internal = new InternalClient(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
get users() {
|
get users() {
|
||||||
return this.internal.users;
|
return this.internal.users;
|
||||||
}
|
}
|
||||||
|
|
@ -56,6 +57,14 @@ export default class Client extends EventEmitter {
|
||||||
return this.internal.user;
|
return this.internal.user;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get userAgent() {
|
||||||
|
return this.internal.userAgent;
|
||||||
|
}
|
||||||
|
|
||||||
|
set userAgent(userAgent) {
|
||||||
|
this.internal.userAgent = userAgent;
|
||||||
|
}
|
||||||
|
|
||||||
// def login
|
// def login
|
||||||
login(email, password, callback = (/*err, token*/) => { }) {
|
login(email, password, callback = (/*err, token*/) => { }) {
|
||||||
return this.internal.login(email, password)
|
return this.internal.login(email, password)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue