Skip to content

VoiceRegion

Implementation of the Discord VoiceRegion class in Luau

https://discord.com/developers/docs/resources/voice#voice-region-object

VoiceRegion.id  :: string

Unique ID for the voice region

VoiceRegion.name  :: string

Name of the voice region

VoiceRegion.optimal  :: boolean

True if this is an optimal voice region for the current user

VoiceRegion.deprecated  :: boolean

Whether this is a deprecated voice region

VoiceRegion.custom  :: boolean

Whether this is a custom voice region (used for events/etc)

VoiceRegion : sync ( voiceRegionData )  -> ()

Responsible for syncing data to this voice region object. This is typically called by the API when this object is created or updated.

Parameters

voiceRegionData: VoiceRegionObject
VoiceRegion . new ( voiceRegionData )  -> VoiceRegion

Responsible for constructing this class.

Parameters

voiceRegionData: VoiceRegionObject

Returns

VoiceRegion