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

Allow modifying GuildOnboarding #819

Merged
merged 1 commit into from
Sep 17, 2023
Merged

Commits on Sep 17, 2023

  1. Allow modifying GuildOnboarding

    The DSL looks like this:
    val onboarding = guild.editOnboarding {
        enabled = true
        mode = OnboardingMode.Advanced
        defaultChannelId(channelId1)
        defaultChannelId(channelId2)
        defaultChannelId(channelId3)
        defaultChannelId(channelId4)
        defaultChannelId(channelId5)
        defaultChannelId(channelId6)
        defaultChannelId(channelId7)
        prompt(
            OnboardingPromptType.MultipleChoice,
            title = "prompt title",
            singleSelect = false,
            required = false,
            inOnboarding = true,
        ) {
            option(title = "option 1 title") {
                channelIds += someChannelId
                description = "option 1 description"
            }
            option(title = "option 2 title") {
                roleIds += someRoleId
            }
        }
    }
    println(onboarding)
    
    See discord/discord-api-docs#6101
    lukellmann committed Sep 17, 2023
    Configuration menu
    Copy the full SHA
    4793ef0 View commit details
    Browse the repository at this point in the history