Overview
Thereverify command sends a broadcast direct message to all users who joined the server before a specified cutoff date. This is useful for periodic verification of student status to ensure that server members are still actively enrolled.
Command Signature
Parameters
The cutoff date in YYYY-MM-DD format. Users who joined before this date will receive the reverification request.Example:
2021-01-01Permissions Required
This command uses a custom permission check (executor_is_dev_or_admin) that requires one of:
- Semester Moderator Role (configured in bot settings)
- Staff Role (configured in bot settings)
- Administrator permission on Discord
Usage Examples
Request reverification for users who joined before 2022
Request reverification for users who joined before September 2023
What Users Receive
Each affected user receives a DM with: Message:reverify that users can click to begin the reverification process.
Implementation Details
Source reference:src/commands/administration.rs:489-556
Process Flow
- Parse the cutoff date from the provided string (format: YYYY-MM-DD)
- Fetch all server members
- Filter members who:
- Joined before the cutoff date
- Are not bots
- Send a confirmation embed showing how many users will be messaged
- Send a DM to each filtered user with the reverification prompt
Date Format Validation
The command expects dates inYYYY-MM-DD format. If an invalid format is provided, it returns an error:
Important Considerations
Use Cases
- Semester or annual verification checks
- Ensuring server members are still actively enrolled students
- Cleaning up inactive or graduated members
- Maintaining accurate student records