pub fn add_category_builder(mut self, channel: CategoryFieldsBuilder) -> Self {
        let last_id = self
            .0
            .iter()
            .rev()
            .find(|c| matches!(c, GuildChannelFields::Category(_)))
            .map_or(ChannelId(1), |c| c.to_owned().id());

        let mut channels = channel.build(ChannelId(last_id.0 + 1));

        self.0.append(&mut channels);

        self
    }
/// Add a category channel builder, and all its children to the builder.
Add a category channel builder, and all its children to the builder.
Add a category channel builder and all its children to the builder .
pub fn add_category_builder(mut self, channel: CategoryFieldsBuilder) -> Self {
        let last_id = self
            .0
            .iter()
            .rev()
            .find(|c| matches!(c, GuildChannelFields::Category(_)))
            .map_or(ChannelId(1), |c| c.to_owned().id());
        let mut channels = channel.build(ChannelId(last_id.0 + 1));
        self.0.append(&mut channels);
        self
    }
pub fn add_category_builder ( mut self , channel : CategoryFieldsBuilder ) -> Self { let last_id = self . 0 . iter ( ) . rev ( ) . find ( | c | matches ! ( c GuildChannelFields Category ( ) ) ) . map_or ( ChannelId ( 1 ) , | c | c . to_owned ( ) . id ( ) ) ; let mut channels = channel . build ( ChannelId ( last_id . 0 + 1 ) ) ; self . 0 . append ( & mut channels ) ; self }
Add a category channel builder, and all its children to the builder.
Add a category channel builder and all its children to the builder .
mut self
channel
CategoryFieldsBuilder