mirror of
https://github.com/danbulant/discord.js
synced 2026-06-24 17:21:59 +00:00
Webpack build for branch master: 1601ad14e3
This commit is contained in:
parent
fe03f15247
commit
8b237fbc36
2 changed files with 12 additions and 15 deletions
|
|
@ -6712,15 +6712,6 @@ class TextBasedChannel {
|
||||||
return this.client.rest.methods.ackTextChannel(this);
|
return this.client.rest.methods.ackTextChannel(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* If the Discord Client considers this channel NSFW
|
|
||||||
* @type {boolean}
|
|
||||||
* @readonly
|
|
||||||
*/
|
|
||||||
get nsfw() {
|
|
||||||
return /^nsfw(-|$)/.test(this.name);
|
|
||||||
}
|
|
||||||
|
|
||||||
_cacheMessage(message) {
|
_cacheMessage(message) {
|
||||||
const maxSize = this.client.options.messageCacheMaxSize;
|
const maxSize = this.client.options.messageCacheMaxSize;
|
||||||
if (maxSize === 0) return null;
|
if (maxSize === 0) return null;
|
||||||
|
|
@ -6825,8 +6816,7 @@ exports.applyToClass = (structure, full = false, ignore = []) => {
|
||||||
'fetchPinnedMessages',
|
'fetchPinnedMessages',
|
||||||
'createCollector',
|
'createCollector',
|
||||||
'createMessageCollector',
|
'createMessageCollector',
|
||||||
'awaitMessages',
|
'awaitMessages'
|
||||||
'nsfw'
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
for (const prop of props) {
|
for (const prop of props) {
|
||||||
|
|
@ -8689,7 +8679,6 @@ class GroupDMChannel extends Channel {
|
||||||
awaitMessages() {}
|
awaitMessages() {}
|
||||||
// Doesn't work on group DMs; bulkDelete() {}
|
// Doesn't work on group DMs; bulkDelete() {}
|
||||||
acknowledge() {}
|
acknowledge() {}
|
||||||
get nsfw() {}
|
|
||||||
_cacheMessage() {}
|
_cacheMessage() {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -13245,6 +13234,15 @@ class TextChannel extends GuildChannel {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* If the Discord Client considers this channel NSFW
|
||||||
|
* @type {boolean}
|
||||||
|
* @readonly
|
||||||
|
*/
|
||||||
|
get nsfw() {
|
||||||
|
return /^nsfw(-|$)/.test(this.name);
|
||||||
|
}
|
||||||
|
|
||||||
// These are here only for documentation purposes - they are implemented by TextBasedChannel
|
// These are here only for documentation purposes - they are implemented by TextBasedChannel
|
||||||
/* eslint-disable no-empty-function */
|
/* eslint-disable no-empty-function */
|
||||||
send() {}
|
send() {}
|
||||||
|
|
@ -13261,7 +13259,6 @@ class TextChannel extends GuildChannel {
|
||||||
stopTyping() {}
|
stopTyping() {}
|
||||||
get typing() {}
|
get typing() {}
|
||||||
get typingCount() {}
|
get typingCount() {}
|
||||||
get nsfw() {}
|
|
||||||
createCollector() {}
|
createCollector() {}
|
||||||
createMessageCollector() {}
|
createMessageCollector() {}
|
||||||
awaitMessages() {}
|
awaitMessages() {}
|
||||||
|
|
|
||||||
4
discord.master.min.js
vendored
4
discord.master.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue