setExplicitContentFilter method

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

Set the explicit content filter for the server.

await server.setExplicitContentFilter(ExplicitContentFilter.disabled, reason: 'Testing');

Implementation

Future<void> setExplicitContentFilter(ExplicitContentFilter value,
    {String? reason}) async {
  await _serverPart.updateServer(
      id, {'explicit_content_filter': value.value}, reason);
}