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 new playing presence #1348

Open
uwuv3 opened this issue Nov 10, 2024 · 5 comments
Open

Add new playing presence #1348

uwuv3 opened this issue Nov 10, 2024 · 5 comments
Labels
Feature Request a new feature

Comments

@uwuv3
Copy link

uwuv3 commented Nov 10, 2024

Which package is the feature request for?

The core library

Feature

Like this,
image
Example raw request: https://discord.com/api/v9/channels/id/messages

{
    "type": 0,
    "content": "😃",
    "mentions": [],
    "mention_roles": [],
    "attachments": [],
    "embeds": [
        {
            "type": "rich",
            "title": "Muse Dash",
            "author": {
                "name": "Idk"
            },
            "thumbnail": {
                "url": "https://cdn.discordapp.com/app-icons/1129504149915050055/037e502ff5576b921193002c80779998.png",
                "proxy_url": "https://images-ext-1.discordapp.net/external/hoSzqEONWATAU1G5-qYNLJMEON0pMxbcaapgkjLe_aY/https/cdn.discordapp.com/app-icons/1129504149915050055/037e502ff5576b921193002c80779998.png",
                "width": 32,
                "height": 32,
                "flags": 0
            },
            "flags": 32,
            "content_scan_version": 1
        }
    ],
    "timestamp": "2024-11-10T16:17:56.443000+00:00",
    "edited_timestamp": null,
    "flags": 0,
    "components": [
        {
            "type": 16,
            "id": 1,
            "content_inventory_entry": {
                "id": "app_id",
                "author_id": "id",
                "author_type": 1,
                "content_type": 1,
                "traits": [
                    {
                        "type": 2,
                        "duration_seconds": 1075
                    },
                    {
                        "type": 1,
                        "first_time": true
                    }
                ],
                "extra": {
                    "type": "played_game_extra",
                    "game_name": "Muse Dash",
                    "application_id": "app_id",
                    "platform": 0
                },
                "participants": [
                    "id"
                ],
                "ended_at": "2024-11-09T14:31:41.540000+00:00",
                "started_at": "2024-11-09T14:13:46.540000+00:00"
            }
        }
    ],
    "resolved": {
        "users": {},
        "members": {},
        "channels": {},
        "roles": {}
    },
    "id": "",
    "channel_id": "",
    "author": {
    },
    "pinned": false,
    "mention_everyone": false,
    "tts": false,
    "nonce": "nonce_id"
}

image
Example Raw Request: https://discord.com/api/v9/content-inventory/users/@me

{
    "request_id": "req_id",
    "entries": [
        {
            "content": {
                "id": "content_id",
                "author_id": "id",
                "author_type": 1,
                "content_type": 3,
                "traits": [
                    {
                        "type": 4,
                        "range": 1
                    },
                    {
                        "type": 2,
                        "duration_seconds": 78639
                    }
                ],
                "extra": {
                    "type": "played_game_extra",
                    "game_name": "Roblox",
                    "application_id": "app_id",
                    "platform": 0
                },
                "original_id": "idd",
                "participants": [
                    "id"
                ],
                "signature": {
                    "signature": "a10fc94c89ee032aa25a8bbf9c3b2ab9f278cc42568fcc11b5989ebd87823977",
                    "kid": "AtDT4Kx25Wmu5cfllPxAiwZKgPbmLsaeHitpx/duvPY=",
                    "version": 1
                }
            },
            "rank": 1
        },
        {
            "content": {
                "id": "another_id",
                "author_id": "id",
                "author_type": 1,
                "content_type": 1,
                "traits": [
                    {
                        "type": 2,
                        "duration_seconds": 24
                    },
                    {
                        "type": 1,
                        "first_time": true
                    }
                ],
                "extra": {
                    "type": "played_game_extra",
                    "game_name": "Deceive Inc.",
                    "application_id": "app_id",
                    "platform": 0
                },
                "participants": [
                    "id"
                ],
                "ended_at": "2024-11-09T20:28:12.552000+00:00",
                "started_at": "2024-11-09T20:27:48.552000+00:00",
                "signature": {
                    "signature": "071a749e4c0429669e0985532bed687a3f31dc8e96e710293e99cc72569fb7b8",
                    "kid": "AtDT4Kx25Wmu5cfllPxAiwZKgPbmLsaeHitpx/duvPY=",
                    "version": 1
                }
            },
            "rank": 2
        },
        {
            "content": {
                "id": "another_id",
                "author_id": "id",
                "author_type": 1,
                "content_type": 1,
                "traits": [
                    {
                        "type": 2,
                        "duration_seconds": 1075
                    },
                    {
                        "type": 1,
                        "first_time": true
                    }
                ],
                "extra": {
                    "type": "played_game_extra",
                    "game_name": "Muse Dash",
                    "application_id": "app_id",
                    "platform": 0
                },
                "participants": [
                    "id"
                ],
                "ended_at": "2024-11-09T14:31:41.540000+00:00",
                "started_at": "2024-11-09T14:13:46.540000+00:00",
                "signature": {
                    "signature": "",
                    "kid": "",
                    "version": 1
                }
            },
            "rank": 3
        }
    ],
    "entries_hash": 0,
    "expired_at": "2024-11-10T16:38:53.952000+00:00",
    "refresh_stale_inbox_after_ms": 30000,
    "refresh_token": "",
    "wait_ms_until_next_fetch": 780956
}

Ideal solution or implementation

Send Message :P

Alternative solutions or implementations

No response

Other context

No response

@uwuv3 uwuv3 added the Feature Request a new feature label Nov 10, 2024
@aiko-chan-ai
Copy link
Owner

very hard...

@uwuv3
Copy link
Author

uwuv3 commented Nov 10, 2024

very hard...

Why :P

@kuronight29
Copy link

Nah, awesomebadname

@uwuv3
Copy link
Author

uwuv3 commented Nov 11, 2024

Nah, awesomebadname

Did'nt i have awesomebadname 😭

@kuronight29
Copy link

Nah, awesomebadname

Did'nt i have awesomebadname 😭

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request a new feature
Projects
None yet
Development

No branches or pull requests

3 participants