mirror of
https://github.com/stoatchat/javascript-client-sdk.git
synced 2026-07-19 17:13:31 -04:00
feat: helper Channel#muted to expose the muted option
This commit is contained in:
@@ -285,7 +285,7 @@ export class Channel {
|
||||
}
|
||||
|
||||
/**
|
||||
* Get whether this channel is unread.
|
||||
* Whether this channel is unread
|
||||
*/
|
||||
get unread(): boolean {
|
||||
if (
|
||||
@@ -303,6 +303,13 @@ export class Channel {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether this channel is muted
|
||||
*/
|
||||
get muted(): boolean {
|
||||
return this.#collection.client.options.channelIsMuted(this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get mentions in this channel for user.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user