mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23: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 Message = require('../Message');
|
||||
|
||||
/**
|
||||
* Interface for classes that have text-channel-like features
|
||||
@@ -71,7 +72,7 @@ class TextBasedChannel {
|
||||
.then(data => {
|
||||
const messages = new Collection();
|
||||
for (const message of data) {
|
||||
messages.set(message.id, message);
|
||||
messages.set(message.id, new Message(this, message, this.client));
|
||||
}
|
||||
resolve(messages);
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user