mirror of
https://github.com/danbulant/discord.js
synced 2026-06-08 09:13:22 +00:00
Fix trying to use this.client, when this IS client, and this.client i… (#1514)
This commit is contained in:
parent
874e94992b
commit
ec5da9e6ad
1 changed files with 2 additions and 2 deletions
|
|
@ -351,7 +351,7 @@ class Client extends EventEmitter {
|
||||||
* @returns {Promise<Webhook>}
|
* @returns {Promise<Webhook>}
|
||||||
*/
|
*/
|
||||||
fetchWebhook(id, token) {
|
fetchWebhook(id, token) {
|
||||||
return this.api.webhooks(id, token).get().then(data => new Webhook(this.client, data));
|
return this.api.webhooks(id, token).get().then(data => new Webhook(this, data));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -409,7 +409,7 @@ class Client extends EventEmitter {
|
||||||
*/
|
*/
|
||||||
fetchApplication(id = '@me') {
|
fetchApplication(id = '@me') {
|
||||||
return this.rest.api.oauth2.applications(id).get()
|
return this.rest.api.oauth2.applications(id).get()
|
||||||
.then(app => new OAuth2Application(this.client, app));
|
.then(app => new OAuth2Application(this, app));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue