setRulesChannel method

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

Set the server's rules channel.

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

Implementation

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