Skip to content

Implemented Modmail#162

Merged
bristermitten merged 18 commits into
TheDeveloperDen:masterfrom
Pdzly:feature/143-modmail
Sep 10, 2025
Merged

Implemented Modmail#162
bristermitten merged 18 commits into
TheDeveloperDen:masterfrom
Pdzly:feature/143-modmail

Conversation

@Pdzly

@Pdzly Pdzly commented Sep 6, 2025

Copy link
Copy Markdown
Contributor

No description provided.

Added the `ModmailModule` with commands, listeners, and utility functions to manage Modmail tickets. Introduced the `ModMailTicket` model for ticket handling. Implemented support for ticket assignment, archiving, and category-based initialization. Updated configuration to include Modmail-specific settings.
…y, and improved thread handling

- Added a message filtering mechanism for archiving threads and DM processing.
- Implemented thread-specific archiving, with support for user DMs and archive channels.
- Updated `fetchAllMessages` and `fetchAllMessagesWithRetry` to accept optional filter functions, improving message retrieval efficiency.
- Modified DM ticket initialization and thread message handling to provide better user feedback and error reporting.
- Improved archive template to include clickable author links.
- Refactored category handling for Modmail tickets and introduced timeout-based cleanup for pending selections.
- Added `handleModmailAssign` and `handleModmailAssignSelect` for assigning tickets to moderators.
- Updated Modmail commands to include `/ticket assign`.
- Implemented permission checks and notifications for better ticket assignment workflow.
- Enhanced interaction handling to support user select menus for assignment.
- Introduced `createModMailDetails` updates for displaying user-specific buttons and details.
- Added `handleModmailUserDetails` and `handleModmailUserClose` for user ticket interaction (view details, close ticket).
- Updated `/ticket` commands with a `close` subcommand for user and moderator workflows.
- Refactored Modmail module to support global commands alongside guild-specific ones.
- Enhanced interaction handling to include new custom IDs for user-specific actions.
@bristermitten
bristermitten self-requested a review September 6, 2025 14:35
Pdzly and others added 10 commits September 6, 2025 16:56
- Enhanced validation for thread accessibility, including checks for archived, deleted, or inaccessible threads.
- Introduced user notifications when tickets are automatically closed due to thread issues.
- Improved Discord API error handling, with additional checks for relevant error codes.
- Reworked message and interaction processing to ensure robust thread and DM handling workflows.
…e/143-modmail

# Conflicts:
#	src/modules/core/bump.listener.ts
…support

- Reformatted imports for readability and consistency across modules.
- Improved Modmail thread handling with validation for accessible thread channels and enhanced error logging.
- Added `escape` method in `RealBigInt` to support proper string representation of BigInt values.
- Fixed return behavior in Starboard listener to prevent redundant executions.
@bristermitten

Copy link
Copy Markdown
Member

lets gooo

@bristermitten
bristermitten merged commit 2d13a4c into TheDeveloperDen:master Sep 10, 2025
12 of 13 checks passed
@Pdzly
Pdzly deleted the feature/143-modmail branch September 10, 2025 10:29
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.

2 participants