autocompleteChannelsForTeamForSearchWithHttpInfo method
Autocomplete channels for search
Autocomplete your channels on a team based on the search term provided in the request URL. Minimum server version: 5.4 ##### Permissions Must have the list_team_channels
permission.
Note: This method returns the HTTP Response
.
Parameters:
Implementation
Future<Response> autocompleteChannelsForTeamForSearchWithHttpInfo(
String teamId,
String name,
) async {
// ignore: prefer_const_declarations
final path = r'/teams/{team_id}/channels/search_autocomplete'.replaceAll('{team_id}', teamId);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <MmQueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
queryParams.addAll(_queryParams('', 'name', name));
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}