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

feat(APIVoiceChannel): support text in voice, properties last_message_id and rate_limit_per_user #544

Merged
merged 6 commits into from Aug 9, 2022

Conversation

Mateo-tem
Copy link
Contributor

@Mateo-tem Mateo-tem commented Jul 29, 2022

Please describe the changes this PR makes and why it should be merged:

Adds the missing properties to APIVoiceChannel (last_message_id and rate_limit_per_user) which were now included in the voice channel payload, with the "Text In Voice" feature, making it a text-based channel.

But to make it more dynamic takes APIVoiceChannel as a base with the common properties in the voice channel types (Now it will be APIVoiceChannelBase) because a guild contains two types of voice channels: GUILD_VOICE and GUILD_STAGE_VOICE.

So, this PR:

  • Creates a type called APIGuildStageVoiceChannel, which covers the channel with the GUILD_STAGE_VOICE type.

  • Adds rate_limit_per_user property to APITextBasedChannel (it already had the last_message_id property).

  • Creates an interface called APIGuildVoiceChannel, which covers the channel with the GUILD_VOICE type, using APIVoiceChannelBase and APITextBasedChannel, adding the video_quality_mode property.

If applicable, please reference Discord API Docs PRs or commits that influenced this PR:

@vercel
Copy link

vercel bot commented Jul 29, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
discord-api-types ❌ Failed (Inspect) Aug 4, 2022 at 2:09AM (UTC)

deno/payloads/v10/channel.ts Outdated Show resolved Hide resolved
deno/payloads/v10/channel.ts Outdated Show resolved Hide resolved
@vladfrangu vladfrangu merged commit 4488d8f into discordjs:main Aug 9, 2022
@Mateo-tem Mateo-tem deleted the feat/text-in-voice branch August 9, 2022 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants