setPublicUpdatesChannel method

Future<void> setPublicUpdatesChannel(
  1. String? channelId, {
  2. String? reason,
})

Set the server's public updates channel.

await server.setPublicUpdatesChannel('1091121140090535956', reason: 'Testing');

Implementation

Future<void> setPublicUpdatesChannel(String? channelId,
    {String? reason}) async {
  await _serverPart.updateServer(
      id, {'public_updates_channel_id': channelId}, reason);
}