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

document role connections #5668

Merged
merged 5 commits into from
Dec 12, 2022
Merged

document role connections #5668

merged 5 commits into from
Dec 12, 2022

Conversation

night
Copy link
Member

@night night commented Nov 21, 2022

No description provided.

docs/resources/User.md Outdated Show resolved Hide resolved
docs/resources/Application_Role_Connection_Metadata.md Outdated Show resolved Hide resolved
@advaith1
Copy link
Contributor

is there a reason application role connection metadata isn't just in the Application page?

@night
Copy link
Member Author

night commented Nov 22, 2022

is there a reason application role connection metadata isn't just in the Application page?

this could be added as a future change. for now it's an API endpoint we're making available.

@advaith1
Copy link
Contributor

I mean the docs can be in Application.md instead of a new Application Role Connection Metadata page

@cobaltt7
Copy link

Feature request:
platform_profile? field. It's a link that users are redirected to when they click the box under "Apps".
image

KubaZ2 added a commit to NetCordDev/NetCord that referenced this pull request Dec 16, 2022
lukellmann added a commit to kordlib/kord that referenced this pull request Jun 14, 2023
The DSL looks like this:
val records = kord.updateApplicationRoleConnectionMetadataRecords {
    record(
        type = BooleanEqual,
        key = "member",
        name = "Member of the secret circle",
        description = "Must be a member of the secret circle",
    ) {
        name(Locale.GERMAN, "Mitglied im geheimen Kreis")
        description(Locale.GERMAN, "Muss ein Mitglied im geheimen Kreis sein")
    }
    record(
        type = DateTimeLessThanOrEqual,
        key = "account_age",
        name = "Account age",
        description = "Account must be at least this many days old",
    ) {
        name(Locale.GERMAN, "Account Alter")
        description(Locale.GERMAN, "Der Account muss zumindest so viele Tage alt sein")
    }
}
println(records)

Note that this does not contain the ability to update the application
role connection for a user as it requires an OAuth2 access token which
Kord doesn't support.

see discord/discord-api-docs#5668
lukellmann added a commit to kordlib/kord that referenced this pull request Jun 15, 2023
The DSL looks like this:
val records = kord.updateApplicationRoleConnectionMetadataRecords {
    record(
        type = BooleanEqual,
        key = "member",
        name = "Member of the secret circle",
        description = "Must be a member of the secret circle",
    ) {
        name(Locale.GERMAN, "Mitglied im geheimen Kreis")
        description(Locale.GERMAN, "Muss ein Mitglied im geheimen Kreis sein")
    }
    record(
        type = DateTimeLessThanOrEqual,
        key = "account_age",
        name = "Account age",
        description = "Account must be at least this many days old",
    ) {
        name(Locale.GERMAN, "Account Alter")
        description(Locale.GERMAN, "Der Account muss zumindest so viele Tage alt sein")
    }
}
println(records)

Note that this does not contain the ability to update the application
role connection for a user as it requires an OAuth2 access token which
Kord doesn't support.

see discord/discord-api-docs#5668
DRSchlaubi pushed a commit to kordlib/kord that referenced this pull request Jul 7, 2023
The DSL looks like this:
val records = kord.updateApplicationRoleConnectionMetadataRecords {
    record(
        type = BooleanEqual,
        key = "member",
        name = "Member of the secret circle",
        description = "Must be a member of the secret circle",
    ) {
        name(Locale.GERMAN, "Mitglied im geheimen Kreis")
        description(Locale.GERMAN, "Muss ein Mitglied im geheimen Kreis sein")
    }
    record(
        type = DateTimeLessThanOrEqual,
        key = "account_age",
        name = "Account age",
        description = "Account must be at least this many days old",
    ) {
        name(Locale.GERMAN, "Account Alter")
        description(Locale.GERMAN, "Der Account muss zumindest so viele Tage alt sein")
    }
}
println(records)

Note that this does not contain the ability to update the application
role connection for a user as it requires an OAuth2 access token which
Kord doesn't support.

see discord/discord-api-docs#5668
@bsian03 bsian03 mentioned this pull request Jan 17, 2024
55 tasks
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.

8 participants