Extract common parts of message-related specs to supertype #1023
Labels
area/core
Related to core module: events, entities, clients, specs
enhancement
Improvement over an existing feature
Milestone
Feature Description:
Create a common supertype for all of the message-related specs (MessageCreateSpec, MessageEditSpec, InteractionFollwupCreateSpec, InteractionReplyEditSpec, WebhookExecuteSpec, etc.) with their common fields.
Justification:
The fact that these types are effectively unrelated (
Spec
doesn't help) makes writing code that works with any of them very difficult. Users have come up with various (ugly) solutions like writing adapters fromMessageCreateSpec
to the other specs.The text was updated successfully, but these errors were encountered: