ban abstract method

Future<void> ban(
  1. SnowflakeEntity user,
  2. {int deleteMessageDays = 0,
  3. String? auditReason}
)

Bans a user and allows to delete messages from deleteMessageDays number of days.

await guild.ban(member);

Implementation

Future<void> ban(SnowflakeEntity user, {int deleteMessageDays = 0, String? auditReason});