-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Adds docs for Onboarding updates and new mode field #6101
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
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -534,6 +534,7 @@ Represents the [onboarding](https://support.discord.com/hc/en-us/articles/110749 | |
| prompts | array of [onboarding prompt](#DOCS_RESOURCES_GUILD/guild-onboarding-object-onboarding-prompt-structure) objects | Prompts shown during onboarding and in customize community | | ||
| default_channel_ids | array of snowflakes | Channel IDs that members get opted into automatically | | ||
| enabled | boolean | Whether onboarding is enabled in the guild | | ||
| mode | [onboarding mode](#DOCS_RESOURCES_GUILD/guild-onboarding-object-onboarding-mode) | Current mode of onboarding | | ||
|
||
###### Onboarding Prompt Structure | ||
|
||
|
@@ -558,6 +559,15 @@ Represents the [onboarding](https://support.discord.com/hc/en-us/articles/110749 | |
| title | string | Title of the option | | ||
| description | ?string | Description of the option | | ||
|
||
###### Onboarding Mode | ||
|
||
Defines the criteria used to satisfy Onboarding constraints that are required for enabling. | ||
|
||
| Name | Value | Description | | ||
| ------------------- | ----- | --------------------------------------------------------- | | ||
| ONBOARDING_DEFAULT | 0 | Counts only Default Channels towards constraints | | ||
| ONBOARDING_ADVANCED | 1 | Counts Default Channels and Questions towards constraints | | ||
|
||
###### Prompt Types | ||
|
||
| Name | Value | | ||
|
@@ -1272,6 +1282,25 @@ Modify the guild's [Welcome Screen](#DOCS_RESOURCES_GUILD/welcome-screen-object) | |
|
||
Returns the [Onboarding](#DOCS_RESOURCES_GUILD/guild-onboarding-object) object for the guild. | ||
|
||
## Modify Guild Onboarding % PUT /guilds/{guild.id#DOCS_RESOURCES_GUILD/guild-object}/onboarding | ||
|
||
Modifies the onboarding configuration of the guild. Returns a 200 with the [Onboarding](#DOCS_RESOURCES_GUILD/guild-onboarding-object) object for the guild. Requires the `MANAGE_GUILD` and `MANAGE_ROLES` permissions. | ||
|
||
> info | ||
> Onboarding enforces constraints when enabled. These constraints are that there must be at least 7 Default Channels and at least 5 of them must allow sending messages to the @everyone role. The `mode` field modifies what is considered when enforcing these constraints. | ||
|
||
> info | ||
> This endpoint supports the `X-Audit-Log-Reason` header. | ||
|
||
###### JSON Params | ||
|
||
| Field | Type | Description | | ||
| ------------------- | --------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------- | | ||
| prompts | array of [onboarding prompt](#DOCS_RESOURCES_GUILD/guild-onboarding-object-onboarding-prompt-structure) objects | Prompts shown during onboarding and in customize community | | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the Onboarding Prompt Structure contains an |
||
| default_channel_ids | array of snowflakes | Channel IDs that members get opted into automatically | | ||
| enabled | boolean | Whether onboarding is enabled in the guild | | ||
| mode | [onboarding mode](#DOCS_RESOURCES_GUILD/guild-onboarding-object-onboarding-mode) | Current mode of onboarding | | ||
Comment on lines
+1299
to
+1302
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you add a note that all params are optional? |
||
|
||
## Modify Current User Voice State % PATCH /guilds/{guild.id#DOCS_RESOURCES_GUILD/guild-object}/voice-states/@me | ||
|
||
Updates the current user's voice state. Returns `204 No Content` on success. Fires a [Voice State Update](#DOCS_TOPICS_GATEWAY_EVENTS/voice-state-update) Gateway event. | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to allow the
X-Audit-Log-Reason
header