ChannelBuilder.fromForumChannel constructor

ChannelBuilder.fromForumChannel({
  1. required String label,
  2. String? guidelines,
  3. Snowflake? parentId,
  4. 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())],
  });
}