mirror of
https://github.com/danbulant/discord.js
synced 2026-07-09 13:10:42 +00:00
Webpack build for branch master: e2c8ba5be0
This commit is contained in:
parent
c0c8d22572
commit
f315990f91
2 changed files with 10 additions and 4 deletions
|
|
@ -13555,6 +13555,13 @@ class MessageMentions {
|
||||||
*/
|
*/
|
||||||
this._content = message.content;
|
this._content = message.content;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Client the message is from
|
||||||
|
* @type {Client}
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
|
this._client = message.client;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Guild the message is in
|
* Guild the message is in
|
||||||
* @type {?Guild}
|
* @type {?Guild}
|
||||||
|
|
@ -13594,17 +13601,16 @@ class MessageMentions {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Any channels that were mentioned (only in {@link TextChannel}s)
|
* Any channels that were mentioned
|
||||||
* @type {?Collection<Snowflake, GuildChannel>}
|
* @type {?Collection<Snowflake, GuildChannel>}
|
||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
get channels() {
|
get channels() {
|
||||||
if (this._channels) return this._channels;
|
if (this._channels) return this._channels;
|
||||||
if (!this._guild) return null;
|
|
||||||
this._channels = new Collection();
|
this._channels = new Collection();
|
||||||
let matches;
|
let matches;
|
||||||
while ((matches = this.constructor.CHANNELS_PATTERN.exec(this._content)) !== null) {
|
while ((matches = this.constructor.CHANNELS_PATTERN.exec(this._content)) !== null) {
|
||||||
const chan = this._guild.channels.get(matches[1]);
|
const chan = this._client.channels.get(matches[1]);
|
||||||
if (chan) this._channels.set(chan.id, chan);
|
if (chan) this._channels.set(chan.id, chan);
|
||||||
}
|
}
|
||||||
return this._channels;
|
return this._channels;
|
||||||
|
|
|
||||||
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