ChannelManager
class ChannelManager(storage: ChannelStorage, logger: Logger, config: ChannelChatFeatureConfig) : StoppableService(source)
Functions
Link copied to clipboard
Returns the ids of every existing channel the player belongs to.
Link copied to clipboard
Creates a new channel.
Link copied to clipboard
Link copied to clipboard
Retrieves all channels.
Link copied to clipboard
Retrieves a channel by its ID.
Link copied to clipboard
Retrieves members of a channel.
Link copied to clipboard
Gets the active channel of a player.
Link copied to clipboard
Gets the full channel context (channel and members) of a player's active channel.
Link copied to clipboard
Retrieves all public channels.
Link copied to clipboard
Initializes the ChannelManager by loading data from storage.
Link copied to clipboard
Checks if a player is banned from a channel.
Link copied to clipboard
Removes a member from a channel.
Link copied to clipboard
Restores the active channel of a player based on their channel membership. If the player is a member of multiple channels, the most recently joined one is selected.
Link copied to clipboard
Link copied to clipboard
Sets the active channel of a player.
Link copied to clipboard
Unbans a player from a channel.
Link copied to clipboard
Updates the channel owner.
Link copied to clipboard
Updates a member's role in a channel.