editClanBanner static method
Edit an existing group's clan banner. You must have suitable permissions in the group to perform this operation. All fields are required.
Implementation
static Future<Int32Response> editClanBanner (
HttpClient client,
String groupId,
ClanBanner body
) async {
final Map<String, dynamic> params = Map<String, dynamic>();
final String _groupId = '$groupId';
final HttpClientConfig config = HttpClientConfig('POST', '/GroupV2/$_groupId/EditClanBanner/', 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);
}