removeTimeout method

Future<void> removeTimeout()

Cancels the exclusion of this

await member.removeTimeout();

Implementation

Future<void> removeTimeout () async {
  Response response = await ioc.use<DiscordApiHttpService>().patch(url: '/guilds/${guild.id}/members/${user.id}')
    .payload({ 'communication_disabled_until': null })
    .build();

  if (response.statusCode == 200 || response.statusCode == 204) {
    _timeoutDuration = null;
  }
}