mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 11:03:30 +01:00
merge
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -1,4 +1,5 @@
|
|||||||
const Collection = require('../../util/Collection');
|
const Collection = require('../../util/Collection');
|
||||||
|
const Message = require('../Message');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Interface for classes that have text-channel-like features
|
* Interface for classes that have text-channel-like features
|
||||||
@@ -71,7 +72,7 @@ class TextBasedChannel {
|
|||||||
.then(data => {
|
.then(data => {
|
||||||
const messages = new Collection();
|
const messages = new Collection();
|
||||||
for (const message of data) {
|
for (const message of data) {
|
||||||
messages.set(message.id, message);
|
messages.set(message.id, new Message(this, message, this.client));
|
||||||
}
|
}
|
||||||
resolve(messages);
|
resolve(messages);
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user