Skip to content

Conversation

@valzargaming
Copy link
Member

This pull request adds a new method to the MessageRepository class to streamline message creation in Discord channels, including permission checks and support for multipart messages. The update also introduces relevant imports and utility functions to support the new functionality.

New message creation method and supporting changes:

  • Added a build method to MessageRepository that allows sending messages to a channel using a MessageBuilder instance, with built-in permission checks and support for both JSON and multipart message formats. The method returns a PromiseInterface<Message> and optionally accepts an audit log reason.
  • Imported MessageBuilder, NoPermissionsException, Channel, and PromiseInterface to support the new method. Also imported the reject function from React\Promise for handling permission errors.

@valzargaming valzargaming requested a review from a team November 7, 2025 23:30
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