-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 docs about age-restricted commands #5617
Conversation
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.
I assume there'll be a changelog addition added later?
Co-authored-by: Lala Sabathil <aiko@aitsys.dev>
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
@Jiralite yah will add a changelog day of or day before |
Great! The rest looks good. Thanks again discord team ❤️ |
quick update:
|
* Age restricted commands (discord/discord-api-docs#5617) * Command Age-Restriction * Update src/Discord/Builders/CommandAttributes.php Co-authored-by: SQKo <87897282+SQKo@users.noreply.github.com> * fix create/update * Update Command.php * Update Command.php * getCreatableAttributes / getUpdatableAttributes * don't use property_exists * only check for key if fromObject is false * Revert "only check for key if fromObject is false" This reverts commit cd76f41. * Revert "don't use property_exists" This reverts commit b633930. * Revert "getCreatableAttributes / getUpdatableAttributes" This reverts commit ee222bf. * use $this->getAttribute() * Update Command.php * Update Command.php * dot Co-authored-by: SQKo <87897282+SQKo@users.noreply.github.com>
The DSL looks like this: val command = kord.createGlobalChatInputCommand( name = "restricted-command", description = "Only for users > 18", ) { nsfw = true dmPermission = true } println(command.nsfw) see discord/discord-api-docs#5617
When will this be merged? |
@shaydewael Is this going to be merged? |
@shaydewael, it's been a month and no comment; what's to happen with this PR? Have you forgotten about it? Internal issues? |
The DSL looks like this: val command = kord.createGlobalChatInputCommand( name = "restricted-command", description = "Only for users > 18", ) { nsfw = true dmPermission = true } println(command.nsfw) see discord/discord-api-docs#5617
The DSL looks like this: val command = kord.createGlobalChatInputCommand( name = "restricted-command", description = "Only for users > 18", ) { nsfw = true dmPermission = true } println(command.nsfw) see discord/discord-api-docs#5617
Will be merged on 11/16 with the release of new client updates, though apps can set the
nsfw
whenever