ban method

Future<bool> ban(
  1. Snowflake memberId, {
  2. String? reason,
})

Unbanned this from the Guild and deleted its messages for a given period

Example :

await member.unban();

Implementation

Future<bool> ban (Snowflake memberId, { String? reason }) async {
  Http http = ioc.singleton(Service.http);
  Response response = await http.destroy(url: '/guilds/$id/bans/$memberId');

  return response.statusCode == 200;
}