editFounderOptions static method
Future<Int32Response>
editFounderOptions(
- HttpClient client,
- String groupId,
- GroupOptionsEditAction body
Edit group options only available to a founder. You must have suitable permissions in the group to perform this operation.
Implementation
static Future<Int32Response> editFounderOptions (
HttpClient client,
String groupId,
GroupOptionsEditAction body
) async {
final Map<String, dynamic> params = Map<String, dynamic>();
final String _groupId = '$groupId';
final HttpClientConfig config = HttpClientConfig('POST', '/GroupV2/$_groupId/EditFounderOptions/', params);
config.body = await body.asyncToJson();
config.bodyContentType = 'application/json';
final HttpResponse response = await client.request(config);
if(response.statusCode == 200) {
return Int32Response.asyncFromJson(response.mappedBody);
}
throw Exception(response.mappedBody);
}