voicechat. getcomchannel Synchronous
Read the identifier of the voice channel Roblox currently assigned. It is useful for displaying current session status.
Luau
voicechat.getcomchannel() -> string?Parameters
This function takes no arguments.
Returns
string?The current channel ID as a string, or nil when no channel is available.
Usage notes
This is the current channel only; the API does not list rooms that can be joined.
Example
Luau
local channel = voicechat.getcomchannel()
print(channel and ("Current voice channel: " .. channel) or "No voice channel")