Skip to content

Api > Room > TryRemoveChannel()


Room.TryRemoveChannel(number channelID)⚓︎

Remove a channel, if it exists.

Parameters:⚓︎

Name Type Description
channelID number The channel to remove.

Returns:⚓︎

type Description
boolean true if the operation could be sent to the server. False if channel doesn't exists.

Usage⚓︎

---@type number
local channelID;


local val0 = Room:TryRemoveChannel(channelID)

Extra Detail⚓︎

It is not allowed to remove channel 0.