mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 21:12:06 +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);
|
||||
}
|
||||
|
||||
|
||||
get users() {
|
||||
return this.internal.users;
|
||||
}
|
||||
|
|
@ -56,6 +57,14 @@ export default class Client extends EventEmitter {
|
|||
return this.internal.user;
|
||||
}
|
||||
|
||||
get userAgent() {
|
||||
return this.internal.userAgent;
|
||||
}
|
||||
|
||||
set userAgent(userAgent) {
|
||||
this.internal.userAgent = userAgent;
|
||||
}
|
||||
|
||||
// def login
|
||||
login(email, password, callback = (/*err, token*/) => { }) {
|
||||
return this.internal.login(email, password)
|
||||
|
|
|
|||
Loading…
Reference in a new issue