ChannelBuilder.fromCategoryChannel constructor
ChannelBuilder.fromCategoryChannel({
- String? label,
- int? position,
- List<
PermissionOverwrite> ? permissions,
Implementation
factory ChannelBuilder.fromCategoryChannel ({ String? label, int? position, List<PermissionOverwrite>? permissions }) {
return ChannelBuilder({
'type': ChannelType.guildCategory.value,
'name': label,
'position': position,
'permission_overwrites': permissions?.map((permission) => permission.toJson()).toList(),
});
}