setVerificationLevel method

Future<void> setVerificationLevel(
  1. VerificationLevel level
)

Modifies the VerificationLevel of this.

await guild.setVerificationLevel(VerificationLevel.veryHigh);

Implementation

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

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