mirror of
https://github.com/danbulant/discord.js
synced 2026-05-24 20:42:27 +00:00
merge
This commit is contained in:
commit
dfbe44143a
2 changed files with 3 additions and 2 deletions
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);
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue