Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API v1.1 Direct Message endpoint wrappers #48

Merged
merged 8 commits into from
Aug 10, 2021

Conversation

alkihis
Copy link
Collaborator

@alkihis alkihis commented Jul 29, 2021

Provide wrappers and paginators to nearly every public DM endpoints (in 1.1 API):

  • Send, get, list and delete DM events
  • Send, get, list, update and delete welcome DMs
  • Create, get, list and delete welcome DM rules (+ helper to combine list+delete+create)
  • Mark a DM as read
  • Indicate typing in a DM 1-to-1 conversation

With appropriate documentation + test suite :)

Note: Test suite is disabled by default, as it requires a user-defined sender ID and an application that supports direct messages auth level. To enable test suite, define env variable TARGET_DM_USER_ID.

@PLhery
Copy link
Owner

PLhery commented Jul 30, 2021

👏

src/types/v1/dm.v1.types.ts Outdated Show resolved Hide resolved
@alkihis alkihis mentioned this pull request Aug 7, 2021
@alkihis alkihis merged commit 858389b into master Aug 10, 2021
@alkihis alkihis deleted the feature/direct-messages-v1 branch August 10, 2021 19:04
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