mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
i hate my life (#1420)
This commit is contained in:
@@ -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() {}
|
||||
|
||||
Reference in New Issue
Block a user