ban method

Future<void> ban({
  1. Duration? deleteSince,
  2. String? reason,
})

Ban the member.

await member.ban(deleteSince: Duration(days: 7), reason: 'Testing');

Implementation

Future<void> ban({Duration? deleteSince, String? reason}) => _memberMethods
    .banMember(serverId: server.id, memberId: id, deleteSince: deleteSince);