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 scopes field to integration structure #5311

Merged
merged 1 commit into from Aug 26, 2022

Conversation

shiftinv
Copy link
Contributor

@shiftinv shiftinv commented Aug 12, 2022

Unsure about optional/nullable since I don't have access to a youtube/twitch integration to test with, just assuming it's optional as that'd match the other fields.

Example from /guilds/{guild.id}/integrations:

{
    "id": "...",
    "type": "discord",
    "name": "...",
    "account": {},
    "application": {},
    "enabled": true,
    "scopes": [
        "applications.commands",
        "webhook.incoming",
        "bot"
    ],
    "user": {}
}

@thewilloftheshadow
Copy link
Contributor

thewilloftheshadow commented Aug 12, 2022

Structure from Twitch integration, it is optional

{
        "id": "...",
        "type": "twitch",
        "name": "...",
        "account": {
            "id": "...",
            "name": "..."
        },
        "user": {
            "id": "...",
            "username": "...",
            "avatar": "...",
            "avatar_decoration": null,
            "discriminator": "...",
            "public_flags": 0
        },
        "revoked": false,
        "enabled": true,
        "expire_behavior": 0,
        "expire_grace_period": 1,
        "subscriber_count": 7,
        "synced_at": "2022-08-09T18:04:02.036000+00:00",
        "role_id": "...",
        "syncing": false,
        "enable_emoticons": false
    },

@shiftinv
Copy link
Contributor Author

Structure from Twitch integration, it is optional

Cool, thanks for checking

@shaydewael shaydewael merged commit 03ba219 into discord:main Aug 26, 2022
Nihlus added a commit to Remora/Remora.Discord that referenced this pull request Sep 2, 2022
itohatweb added a commit to twilight-rs/twilight that referenced this pull request Sep 16, 2022
Discord provides the scopes which the integration has been authorized
for.

Reference: discord/discord-api-docs#5311
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.

None yet

3 participants