ChannelBuilder.fromVoiceChannel constructor
ChannelBuilder.fromVoiceChannel({})
Implementation
factory ChannelBuilder.fromVoiceChannel ({
String? label,
Snowflake? parentId,
int? position,
List<PermissionOverwrite>? permissions,
bool? nsfw,
int? bitrate,
int? userLimit,
String? rtcRegion,
int? videoQualityMode,
}) {
return ChannelBuilder({
'type': ChannelType.guildVoice.value,
'name': label,
'parent_id': parentId,
'position': position,
'permission_overwrites': permissions?.map((permission) => permission.toJSON()).toList(),
'nsfw': nsfw,
'bitrate': bitrate,
'user_limit': userLimit,
'rtc_region': rtcRegion,
'video_quality_mode': videoQualityMode
});
}