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

Add support new memberships #7

Closed
stevencrader opened this issue Apr 3, 2023 · 0 comments
Closed

Add support new memberships #7

stevencrader opened this issue Apr 3, 2023 · 0 comments

Comments

@stevencrader
Copy link
Collaborator

Detect and report new membership.

Example message:

{
    "data": {
        "messages": [
            {
                "blocks": [
                    {
                        "data": {
                            "text": "Defected is my ABSOLUTE favorite show! I watch several of them AND read all of the Badlanders on SubStack, but you two are the best!"
                        },
                        "type": "text.1"
                    }
                ],
                "id": "961986094364777049",
                "notification": {
                    "badge": "recurring_subscription",
                    "text": "is now a monthly supporter!"
                },
                "rant": {
                    "duration": 300,
                    "expires_on": "2023-04-03T02:35:56+00:00",
                    "price_cents": 500
                },
                "text": "Defected is my ABSOLUTE favorite show! I watch several of them AND read all of the Badlanders on SubStack, but you two are the best!",
                "time": "2023-04-03T02:30:56+00:00",
                "user_id": "17316865"
            }
        ],
        "users": [
            {
                "badges": [
                    "recurring_subscription",
                    "whale-gray"
                ],
                "color": "#ed5b47",
                "id": "17316865",
                "username": "LLSummers"
            }
        ]
    },
    "request_id": "UR2u8B5LkhmGWLyhMfmxC1F6CgD6jz5wFpk39l6iB8g",
    "type": "messages"
}
stevencrader added a commit that referenced this issue Apr 3, 2023
stevencrader added a commit that referenced this issue Apr 6, 2023
- Stores the "notification" information in cache
- New entry for "notifications"

Resolves #7
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

No branches or pull requests

1 participant