mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 19:13:31 +01:00
feat(BaseChannel): Add isThreadOnly() (#9847)
* add isThreadBased * Update typings * fix name --------- Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
@@ -147,6 +147,14 @@ class BaseChannel extends Base {
|
||||
return 'bitrate' in this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates whether this channel is {@link ThreadOnlyChannel thread-only}.
|
||||
* @returns {boolean}
|
||||
*/
|
||||
isThreadOnly() {
|
||||
return 'availableTags' in this;
|
||||
}
|
||||
|
||||
toJSON(...props) {
|
||||
return super.toJSON({ createdTimestamp: true }, ...props);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user