VoiceManager
@vimp-mp/types 2.0.1Creates and looks up server-owned voice channels.
ts
interface VoiceManagerMembers
channels
ts
readonly channels: Array<VoiceChannel>Snapshot of all active voice channels.
createChannel
ts
createChannel(name: string, options?: VoiceChannelCreateOptions): VoiceChannel | nullCreates a voice channel, or returns null if creation fails.
getChannelById
ts
getChannelById(id: number): VoiceChannel | nullReturns the channel with id, or null when it does not exist.