setSystemChannel method

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

Set the server's system channel.

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

Implementation

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