Skip to content

Comments

Add forum post creation for quarantined members#23

Merged
jslay88 merged 1 commit intomainfrom
jslay/quarantine-post
Jan 7, 2026
Merged

Add forum post creation for quarantined members#23
jslay88 merged 1 commit intomainfrom
jslay/quarantine-post

Conversation

@jslay88
Copy link
Contributor

@jslay88 jslay88 commented Jan 7, 2026

This PR adds functionality to automatically create a forum post when a member is quarantined.

Changes

  • Added QUARANTINE_CHANNEL_ID constant for the forum channel
  • Implemented _setup_quarantine_post method to create forum threads with quarantine information
  • Integrated forum post creation into both automatic and manual quarantine flows
  • Added comprehensive test coverage for the new functionality including:
    • Successful forum post creation
    • Error handling for missing channel, wrong channel type, permission errors, HTTP errors, and general exceptions
    • Content verification to ensure all required elements are included

Testing

All tests pass and the implementation follows the existing code patterns in the quarantine cog.

- Add QUARANTINE_CHANNEL_ID constant for forum channel
- Implement _setup_quarantine_post method to create forum threads
- Integrate forum post creation into quarantine flow
- Add comprehensive tests for forum post functionality including error cases
@jslay88 jslay88 merged commit 180f630 into main Jan 7, 2026
4 checks passed
@jslay88 jslay88 deleted the jslay/quarantine-post branch January 7, 2026 04:34
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.

1 participant