Skip to content
Discussion options

You must be logged in to vote

Thanks for the question! It is on my todo list to add clear docs on how event driven systems can/should be tested.

In the meantime though, I hope that the API docs will suffice. In particular:

  1. You can define an async or synchronous message interaction as part of the upon_receiving call:

    upon_receiving(
        description: str, interaction: Literal["Async"]
    ) -> AsyncMessageInteraction
    upon_receiving(
        description: str, interaction: Literal["Sync"]
    ) -> SyncMessageInteraction
  2. These return an AsyncMessageInteraction or a SyncMessageInteraction which follow generally quite similar patterns to your HTTP method when it comes to defining the interaction itself

When it comes to the verific…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@monsieurblibble
Comment options

@JP-Ellis
Comment options

@monsieurblibble
Comment options

Answer selected by monsieurblibble
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants