mirror of
https://github.com/danbulant/discord.js
synced 2026-06-22 00:02:13 +00:00
Fix incorrect reference
This commit is contained in:
parent
b95058399e
commit
d956780d18
2 changed files with 2 additions and 2 deletions
|
|
@ -177,7 +177,7 @@ var InternalClient = (function () {
|
|||
ret.end(function (error, data) {
|
||||
if (error) {
|
||||
if (data.status === 429) {
|
||||
self.emit("debug", "Encountered 429 at " + url);
|
||||
self.client.emit("debug", "Encountered 429 at " + url);
|
||||
}
|
||||
reject(error);
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -107,7 +107,7 @@ export default class InternalClient {
|
|||
ret.end((error, data) => {
|
||||
if (error) {
|
||||
if(data.status === 429) {
|
||||
self.emit("debug", "Encountered 429 at " + url)
|
||||
self.client.emit("debug", "Encountered 429 at " + url);
|
||||
}
|
||||
reject(error);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue