setVerificationLevel method

Future<void> setVerificationLevel(
  1. VerificationLevel level
)

Modifies the verificationLevel of the current Guild.

Example :

import 'package:mineral/api.dart'; 👈 // then you can use VerificationLevel enum

await guild.setVerificationLevel(VerificationLevel.veryHigh);

Implementation

Future<void> setVerificationLevel (VerificationLevel level) async {
  Response response = await ioc.use<HttpService>().patch(url: "/guilds/$id", payload: { 'verification_level': level.value });

  if (response.statusCode == 200) {
    _verificationLevel = level;
  }
}