The Join to Leave feature automatically punishes users who join and leave your server within a specified time period, helping to prevent raid attempts and unwanted behavior.

Requirements

  • Bot must have permissions to:
    • Kick members
    • Ban members
    • View audit logs

Setup

Enable Protection

,jointoleave setup [time] [punishment] [reason]

Time format examples: 5m (5 minutes), 1h (1 hour), 30s (30 seconds)

Disable Protection

,jointoleave disable

Management

View Settings

,jointoleave settings

Edit Settings

,jointoleave edit [setting] [value]

Available settings: time, punishment, reason

Bypass Management

Add Bypass

,jointoleave bypass add [user]

Remove Bypass

,jointoleave bypass remove [user]

List Bypasses

,jointoleave bypass list

Features

Punishment Types

  • Kick: Removes user from server
  • Ban: Permanently bans user from server

Time Threshold

  • Configurable time window for join-to-leave detection
  • Default: 5 minutes
  • Minimum: 1 second
  • Maximum: No limit

Bypass System

  • Trusted users can be exempted from protection
  • Useful for staff members and trusted users
  • Bypasses persist across server restarts

Make sure the bot has proper permissions to execute punishments. If the bot lacks permissions, the protection will not work.