mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +01:00
Forgot to expose userAgent is base client
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user