ChannelBuilder.fromForumChannel constructor
ChannelBuilder.fromForumChannel({
- required String label,
- String? guidelines,
- Snowflake? parentId,
- List<
ForumTagBuilder> ? tags,
Implementation
factory ChannelBuilder.fromForumChannel ({ required String label, String? guidelines, Snowflake? parentId, List<ForumTagBuilder>? tags }) {
return ChannelBuilder({
'type': ChannelType.guildForum.value,
'name': label,
'parent_id': parentId,
'topic': guidelines,
'available_tags': [...?tags?.map((tag) => tag.toJson())],
});
}