mirror of
https://github.com/danbulant/discord.js
synced 2026-05-24 20:42:27 +00:00
i hate my life (#1420)
This commit is contained in:
parent
5ac22691d2
commit
1601ad14e3
3 changed files with 10 additions and 13 deletions
|
|
@ -172,7 +172,6 @@ class GroupDMChannel extends Channel {
|
|||
awaitMessages() {}
|
||||
// Doesn't work on group DMs; bulkDelete() {}
|
||||
acknowledge() {}
|
||||
get nsfw() {}
|
||||
_cacheMessage() {}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -72,6 +72,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
|
||||
/* eslint-disable no-empty-function */
|
||||
send() {}
|
||||
|
|
@ -88,7 +97,6 @@ class TextChannel extends GuildChannel {
|
|||
stopTyping() {}
|
||||
get typing() {}
|
||||
get typingCount() {}
|
||||
get nsfw() {}
|
||||
createCollector() {}
|
||||
createMessageCollector() {}
|
||||
awaitMessages() {}
|
||||
|
|
|
|||
|
|
@ -389,15 +389,6 @@ class TextBasedChannel {
|
|||
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) {
|
||||
const maxSize = this.client.options.messageCacheMaxSize;
|
||||
if (maxSize === 0) return null;
|
||||
|
|
@ -502,8 +493,7 @@ exports.applyToClass = (structure, full = false, ignore = []) => {
|
|||
'fetchPinnedMessages',
|
||||
'createCollector',
|
||||
'createMessageCollector',
|
||||
'awaitMessages',
|
||||
'nsfw'
|
||||
'awaitMessages'
|
||||
);
|
||||
}
|
||||
for (const prop of props) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue