@@ -141,8 +141,13 @@ extension WebAPI {
141141 }
142142 }
143143
144- public func channelsList( excludeArchived: Bool = false , success: ( ( _ channels: [ [ String : Any ] ] ? ) -> Void ) ? , failure: FailureClosure ? ) {
145- list ( . channelsList, type: . channel, excludeArchived: excludeArchived, success: { ( channels) in
144+ public func channelsList(
145+ excludeArchived: Bool = false ,
146+ excludeMembers: Bool = false ,
147+ success: ( ( _ channels: [ [ String : Any ] ] ? ) -> Void ) ? ,
148+ failure: FailureClosure ?
149+ ) {
150+ list ( . channelsList, type: . channel, excludeArchived: excludeArchived, excludeMembers: excludeMembers, success: { ( channels) in
146151 success ? ( channels)
147152 } ) { ( error) in
148153 failure ? ( error)
@@ -473,8 +478,13 @@ extension WebAPI {
473478 }
474479 }
475480
476- public func groupsList( excludeArchived: Bool = false , success: ( ( _ channels: [ [ String : Any ] ] ? ) -> Void ) ? , failure: FailureClosure ? ) {
477- list ( . groupsList, type: . group, excludeArchived: excludeArchived, success: { ( channels) in
481+ public func groupsList(
482+ excludeArchived: Bool = false ,
483+ excludeMembers: Bool = false ,
484+ success: ( ( _ channels: [ [ String : Any ] ] ? ) -> Void ) ? ,
485+ failure: FailureClosure ?
486+ ) {
487+ list ( . groupsList, type: . group, excludeArchived: excludeArchived, excludeMembers: excludeMembers, success: { ( channels) in
478488 success ? ( channels)
479489 } ) { ( error) in
480490 failure ? ( error)
@@ -549,8 +559,13 @@ extension WebAPI {
549559 }
550560 }
551561
552- public func imsList( excludeArchived: Bool = false , success: ( ( _ channels: [ [ String : Any ] ] ? ) -> Void ) ? , failure: FailureClosure ? ) {
553- list ( . imList, type: . im, excludeArchived: excludeArchived, success: { ( channels) in
562+ public func imsList(
563+ excludeArchived: Bool = false ,
564+ excludeMembers: Bool = false ,
565+ success: ( ( _ channels: [ [ String : Any ] ] ? ) -> Void ) ? ,
566+ failure: FailureClosure ?
567+ ) {
568+ list ( . imList, type: . im, excludeArchived: excludeArchived, excludeMembers: excludeMembers, success: { ( channels) in
554569 success ? ( channels)
555570 } ) { ( error) in
556571 failure ? ( error)
@@ -610,8 +625,13 @@ extension WebAPI {
610625 }
611626 }
612627
613- public func mpimsList( excludeArchived: Bool = false , success: ( ( _ channels: [ [ String : Any ] ] ? ) -> Void ) ? , failure: FailureClosure ? ) {
614- list ( . mpimList, type: . group, excludeArchived: excludeArchived, success: { ( channels) in
628+ public func mpimsList(
629+ excludeArchived: Bool = false ,
630+ excludeMembers: Bool = false ,
631+ success: ( ( _ channels: [ [ String : Any ] ] ? ) -> Void ) ? ,
632+ failure: FailureClosure ?
633+ ) {
634+ list ( . mpimList, type: . group, excludeArchived: excludeArchived, excludeMembers: excludeMembers, success: { ( channels) in
615635 success ? ( channels)
616636 } ) { ( error) in
617637 failure ? ( error)
@@ -1096,10 +1116,11 @@ extension WebAPI {
10961116 _ endpoint: Endpoint ,
10971117 type: ChannelType ,
10981118 excludeArchived: Bool = false ,
1119+ excludeMembers: Bool = false ,
10991120 success: ( ( _ channels: [ [ String : Any ] ] ? ) -> Void ) ? ,
11001121 failure: FailureClosure ?
11011122 ) {
1102- let parameters : [ String : Any ] = [ " token " : token, " exclude_archived " : excludeArchived]
1123+ let parameters : [ String : Any ] = [ " token " : token, " exclude_archived " : excludeArchived, " exclude_members " : excludeMembers ]
11031124 networkInterface. request ( endpoint, parameters: parameters, successClosure: { ( response) in
11041125 success ? ( response [ type. rawValue+ " s " ] as? [ [ String : Any ] ] )
11051126 } ) { ( error) in
0 commit comments