Webpack build for branch master: 95bcac9d9b

This commit is contained in:
Travis CI 2017-04-28 15:05:01 +00:00
parent 3bfc1104d1
commit 98876eecec
2 changed files with 3 additions and 3 deletions

View file

@ -6452,8 +6452,8 @@ class TextBasedChannel {
fetchMessage(messageID) { fetchMessage(messageID) {
if (!this.client.user.bot) { if (!this.client.user.bot) {
return this.fetchMessages({ limit: 1, around: messageID }).then(messages => { return this.fetchMessages({ limit: 1, around: messageID }).then(messages => {
const msg = messages.first(); const msg = messages.get(messageID);
if (msg.id !== messageID) throw new Error('Message not found.'); if (!msg) throw new Error('Message not found.');
return msg; return msg;
}); });
} }

File diff suppressed because one or more lines are too long