removeUserFromChannelWithHttpInfo method
Remove user from channel
Delete a channel member, effectively removing them from a channel. In server version 5.3 and later, channel members can only be deleted from public or private channels. ##### Permissions manage_public_channel_members
permission if the channel is public. manage_private_channel_members
permission if the channel is private.
Note: This method returns the HTTP Response
.
Parameters:
Implementation
Future<Response> removeUserFromChannelWithHttpInfo(
String channelId,
String userId,
) async {
// ignore: prefer_const_declarations
final path = r'/channels/{channel_id}/members/{user_id}'
.replaceAll('{channel_id}', channelId)
.replaceAll('{user_id}', userId);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <MmQueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'DELETE',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}