Skip to content

Conversation

@Hector-Zhuang
Copy link

What are you trying to accomplish?

Add two new moderation commands to the Discord bot:

  1. /delete-msgs – Allows moderators to select and delete recent messages from a user, with interactive selection and confirmation.
  2. /timeout – Allows moderators to timeout a user for a specified duration with optional reason and interactive confirmation.

How are you accomplishing it?

  • Implemented /delete-msgs with:
    • Optional channel, limit, and time-range filtering.
    • Select menu to choose messages.
    • "Select All" button for bulk deletion.
    • Confirmation and cancel buttons.
  • Implemented /timeout with:
    • Predefined duration options.
    • Optional reason parameter.
    • Confirmation and cancel buttons before applying the timeout.

Is there anything reviewers should know?

Not really

  • Is it safe to rollback this change if anything goes wrong?
    Yes, these are additive commands. Removing them will not affect existing bot functionality.

@Hector-Zhuang Hector-Zhuang force-pushed the feat/timeout-delete-batch-commands branch from 68c9d5b to 0b8e501 Compare November 19, 2025 22:33
@Hector-Zhuang Hector-Zhuang force-pushed the feat/timeout-delete-batch-commands branch from 0b8e501 to 54df49d Compare November 24, 2025 21:18
Copy link

@CubedProgrammer CubedProgrammer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good at a glance, will take a closer look in the morning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants