editFounderOptions static method

Future<Int32Response> editFounderOptions(
  1. HttpClient client,
  2. String groupId,
  3. 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);
}