setAfkChannel method

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

Set the server's afk channel.

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

Implementation

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