mirror of
https://github.com/danbulant/discord.js
synced 2026-07-07 04:00:42 +00:00
Webpack build for branch master: 95bcac9d9b
This commit is contained in:
parent
3bfc1104d1
commit
98876eecec
2 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
2
discord.master.min.js
vendored
2
discord.master.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue