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 application invites and update docs for stream invites #2690

Merged
merged 3 commits into from
Apr 6, 2021

Conversation

advaith1
Copy link
Member

@advaith1 advaith1 commented Mar 7, 2021

No description provided.

HuyaneMatsu added a commit to HuyaneMatsu/hata that referenced this pull request Mar 10, 2021
References:

discord/discord-api-docs#2667

- Update application command limits.
- Add length assertion for `ApplicationCommandOptionChoice.value`.
- Add `ApplicationCommandOptionChoice.__len__`.
- Add `ApplicationCommandOption.__len__`.
- Add `ApplicationCommand.__len__`.

discord/discord-api-docs#2615

- Add `InteractionType`.
- Add `InteractionEvent.type`.
- Add `Message.interaction`.
- Add `file` parameter to `Client.webhook_message_edit`.
- Add `file` parameter to `Client.interaction_response_message_edit`.
- Add `file` parameter to `Client.interaction_followup_message_edit`.

discord/discord-api-docs#2690

- Add `InviteTargetType.EMBEDDED_APPLICATION`.
- Add `Invite.target_application`.
- Add `target_application` parameter to `Invite.precreate`.
- Add `Client.application_invite_create`.

discord/discord-api-docs#2692

- Add `ChannelVoice.region` attribute.
- Add `region` parameter to `ChannelVoice.precreate`.
- Add `region` parameter to `cr_pg_channel_object`. (Inherited by `Client.channel_create`.)
- Add `region` parameter to `Client.channel_edit`.
- Handle voice client disconnect when moving between voice channels of different regions.

Public API:

Coroutine generators yielded or returned from slash commands are handled as coroutine generator slash commands themselves.
Add `SlashResponse` class.
Update `slash.md`.
Add `'number'` annotation to slash commands.
Add `emoji.md` to topics.
Add `Application.precreate`.

Internal:

Fix a broken docstring in `Color` (Reported by NeKun#9509).
Add `URL.subdomain`.
Add `URL.raw_subdomain`.
Slash commands dropped back type based annotations.
Redo slash command syncing to handle extensions correctly.
`Application.__new__` could not set `.flags`.
Update links in intro.
Fix formatting issues in commands extension.
`Extension._unload_extension` did not use executor when rendering exception traceback.
Missing `ApplicationCommand.__ne__` caused errors (inheritance issues probably).
Update `Guild.precreate.__doc__`.
Remove unused `Guild.has_animated_icon` attribute (was removed like 1 year ago, lol).
Add `region` parameter to `Guild.precreate`.
Handle voice client player and reader stop when the guild's voice region changes.
Do voice client reconnect for close code `1006`.
`User.has_higher_role_than_at` could return `False` when the other other is not in the guild meanwhile self is.
@night night merged commit 1b4e363 into discord:master Apr 6, 2021
@advaith1 advaith1 deleted the application-invites branch April 6, 2021 23:52
Nihlus added a commit to Remora/Remora.Discord that referenced this pull request Apr 10, 2021
itohatweb added a commit to discordeno/discordeno that referenced this pull request Apr 13, 2021
vladfrangu pushed a commit to discordjs/discord-api-types that referenced this pull request Apr 18, 2021
…#124)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

BREAKING CHANGE: `InviteTargetUserType` is renamed to `InviteTargetType`, to match the documentation.
  - Reference: discord/discord-api-docs#2690
daivd-patrick added a commit to daivd-patrick/discord-api-type that referenced this pull request Jan 11, 2024
… (#124)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

BREAKING CHANGE: `InviteTargetUserType` is renamed to `InviteTargetType`, to match the documentation.
  - Reference: discord/discord-api-docs#2690
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

2 participants