setSafetyAlertsChannel method

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

Set the server's safety alerts channel.

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

Implementation

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