unban method

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

Unbanned member from this.

await member.unban("670642326661496866", reason: "Lorem ipsum dolor sit amet");

Implementation

Future<bool> unban (Snowflake memberId, { String? reason }) async {
  Response response = await ioc.use<DiscordApiHttpService>().destroy(url: '/guilds/$id/bans/$memberId')
    .auditLog(reason)
    .build();

  return response.statusCode == 200;
}