ModifyGuildRole method

Future<ModifyGuildRoleResponse> ModifyGuildRole(
  1. ModifyGuildRoleRequest input, {
  2. Map<String, String> headers = const {},
})

Implementation

Future<ModifyGuildRoleResponse> ModifyGuildRole(ModifyGuildRoleRequest input, {Map<String,String> headers = const {}}) async {
	var response = await $http.post(this.server.replace(path: "/protocol.chat.v1.ChatService/ModifyGuildRole"), body: input.writeToBuffer(), headers: {"content-type": "application/hrpc"}..addAll(headers)..addAll(this.commonHeaders));
	if (response.statusCode != 200) { throw response; }
	return ModifyGuildRoleResponse.fromBuffer(response.bodyBytes);
}