mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
Clean up a bunch of promise stuff
This commit is contained in:
@@ -97,8 +97,8 @@ class TextBasedChannel {
|
||||
this.client.rest.methods.sendMessage(this, content, options, {
|
||||
file,
|
||||
name: fileName,
|
||||
}).then(resolve).catch(reject);
|
||||
}).catch(reject);
|
||||
}).then(resolve, reject);
|
||||
}, reject);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -138,7 +138,7 @@ class TextBasedChannel {
|
||||
|
||||
this._cacheMessage(msg);
|
||||
resolve(msg);
|
||||
}).catch(reject);
|
||||
}, reject);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -172,7 +172,7 @@ class TextBasedChannel {
|
||||
this._cacheMessage(msg);
|
||||
}
|
||||
resolve(messages);
|
||||
}).catch(reject);
|
||||
}, reject);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -190,7 +190,7 @@ class TextBasedChannel {
|
||||
this._cacheMessage(msg);
|
||||
}
|
||||
resolve(messages);
|
||||
}).catch(reject);
|
||||
}, reject);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user