Skip to content

Builder Enhancements

Created by: jeffreyladd

Summary

This enhances both the DiscordMessageBuilder and DiscordWebhookBuilder to have various changes

Changes proposed

  • Adds a Clear Method to both the DiscordMessageBuilder and DiscordWebhookBuilder so that they can be reused
  • Removes the AddFile/WithFile overloads that takes a filePath
  • Adds a param to the AddFile/WithFile Overloads that will allow for resetting the position of a File if it is requested. This defaults to false
  • Cleans up the internal methods of the Webhook Send so it will pass the builder the whole way through.
  • Updates and adds the various tests that had to deal with this change.

Merge request reports

Loading