removeTimeout method

Future<void> removeTimeout()

Cancels the exclusion of this

Example :

await member.removeTimeout();

Implementation

Future<void> removeTimeout () async {
  Http http = ioc.singleton(Service.http);

  Response response = await http.patch(url: '/guilds/${guild.id}/members/${user.id}', payload: { 'communication_disabled_until': null });
  if (response.statusCode == 200 || response.statusCode == 204) {
    _timeoutDuration = null;
  }
}