setAfkTimeout method

Future<void> setAfkTimeout(
  1. int value, {
  2. String? reason,
})

Set the server's afk timeout.

await server.setAfkTimeout(300, reason: 'Testing');

Implementation

Future<void> setAfkTimeout(int value, {String? reason}) async {
  await _serverPart.updateServer(id, {'afk_timeout': value}, reason);
}