Hierarchy

  • OpenChannelHandlerParams
    • OpenChannelHandler

Constructors

Properties

onChannelChanged?: ((channel: BaseChannel) => void) = noop

A callback for when channel property is changed.

onChannelDeleted?: ((channelUrl: string, channelType: ChannelType) => void) = noop

A callback for when channel is deleted.

onChannelFrozen?: ((channel: BaseChannel) => void) = noop

A callback for when channel is frozen (Users can't send messages).

onChannelMemberCountChanged?: ((channels: BaseChannel[]) => void) = noop
onChannelParticipantCountChanged?: ((channel: OpenChannel) => void) = noop

Called when one or more open channel's member counts are changed.

onChannelUnfrozen?: ((channel: BaseChannel) => void) = noop

A callback for when channel is unfrozen (Users can send messages).

onMentionReceived?: ((channel: BaseChannel, message: BaseMessage) => void) = noop

A callback for when a mention is received.

onMessageDeleted?: ((channel: BaseChannel, messageId: number) => void) = noop

A callback for when a message is deleted.

onMessageReceived?: ((channel: BaseChannel, message: BaseMessage) => void) = noop

A callback for when a message is received.

onMessageUpdated?: ((channel: BaseChannel, message: BaseMessage) => void) = noop

A callback for when a message is updated.

onMetaCounterCreated?: ((channel: BaseChannel, metaCounter: MetaCounter) => void) = noop

A callback for when channel meta counters is created.

onMetaCounterDeleted?: ((channel: BaseChannel, metaCounterKeys: string[]) => void) = noop

A callback for when channel meta counters are deleted.

onMetaCounterUpdated?: ((channel: BaseChannel, metaCounter: MetaCounter) => void) = noop

A callback for when channel meta counters is updated.

onMetaDataCreated?: ((channel: BaseChannel, metaData: MetaData) => void) = noop

A callback for when channel meta data is created.

onMetaDataDeleted?: ((channel: BaseChannel, metaDataKeys: string[]) => void) = noop

A callback for when channel meta data is deleted.

onMetaDataUpdated?: ((channel: BaseChannel, metaData: MetaData) => void) = noop

A callback for when channel meta data is updated.

onOperatorUpdated?: ((channel: BaseChannel, users: User[]) => void) = noop

A callback for when operators change in channel.

onPinnedMessageUpdated?: ((channel: OpenChannel) => void) = noop

A callback for when pinned message is changed.

onPollDeleted?: ((channel: OpenChannel, id: number) => void) = noop

Called when a poll is deleted.

onPollUpdated?: ((channel: OpenChannel, event: PollUpdateEvent) => void) = noop

Called when a poll is updated. The user should search for cached messages that contain this event's poll (pollUpdateEvent.pollId, pollUpdateEvent.messageId) and call Poll.applyPollUpdateEvent() on those messages.

onPollVoted?: ((channel: OpenChannel, event: PollVoteEvent) => void) = noop

Called when one or more vote is cast/canceled on a poll. The user should search for cached messages that contain this event's poll (pollVoteEvent.pollId, pollVoteEvent.messageId) and call Poll.applyPollVoteEvent() on those messages.

onReactionUpdated?: ((channel: BaseChannel, reactionEvent: ReactionEvent) => void) = noop

A callback for when a reactionEvent is updated.

onThreadInfoUpdated?: ((channel: BaseChannel, threadInfoUpdateEvent: ThreadInfoUpdateEvent) => void) = noop

A callback for when the thread information is updated.

onUserBanned?: ((channel: BaseChannel, user: RestrictedUser) => void) = noop

A callback for when user is banned from channel.

onUserEntered?: ((channel: OpenChannel, user: User) => void) = noop

A callback for when a User has entered OpenChannel. To use the updated participant count, refer to openChannel.participantCount.

onUserExited?: ((channel: OpenChannel, user: User) => void) = noop

A callback for when a User has exited OpenChannel. To use the updated participant count, refer to openChannel.participantCount.

onUserMuted?: ((channel: BaseChannel, user: RestrictedUser) => void) = noop

A callback for when a User is muted from channel.

onUserUnbanned?: ((channel: BaseChannel, user: User) => void) = noop

A callback for when user is unbanned from channel.

onUserUnmuted?: ((channel: BaseChannel, user: User) => void) = noop

A callback for when User is unmuted from channel.