Merge branch 'master' into feat/pin-message

This commit is contained in:
Salvatore Giordano
2021-02-19 16:17:38 +01:00
committed by GitHub
5 changed files with 71 additions and 1 deletions
@@ -690,6 +690,13 @@ class Channel {
return _client.decode(response.data, UpdateChannelResponse.fromJson);
}
/// Edit the channel custom data
Future<PartialUpdateChannelResponse> updatePartial(
Map<String, dynamic> channelData) async {
final response = await _client.patch(_channelURL, data: channelData);
return _client.decode(response.data, PartialUpdateChannelResponse.fromJson);
}
/// Delete this channel. Messages are permanently removed.
Future<EmptyResponse> delete() async {
final response = await _client.delete(_channelURL);