discord.js icon indicating copy to clipboard operation
discord.js copied to clipboard

feat: support `voiceChannelEffectSend` event

Open jaw0r3k opened this issue 1 year ago • 2 comments

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

  • https://github.com/discord/discord-api-docs/pull/6025

🤖 Generated by Copilot at 0c36226

Summary

🎙️🎭🚀

This pull request adds a new feature to the discord.js library that allows listening for voice channel effects, such as emoji reactions, sent by users. It defines a new event, a new structure, a new action, and a new handler for the feature. It also updates the Constants.js, ActionsManager.js, and index.js files to support the feature.

Sing, O Muse, of the cunning coder who devised A new action for the discordant gateway, and thus Enabled the voice channel effect, a wondrous sight Like the flashing thunderbolts of Zeus the cloud-gatherer.

Walkthrough

  • Register a new action class for handling voice channel effect send events (link)
  • Define the VoiceChannelEffectSendAction class that emits a voiceChannelEffectSend event on the client with a new VoiceChannelEffect structure (link)
  • Add a new handler function for the VOICE_CHANNEL_EFFECT_SEND opcode from the gateway (link, link)
  • Define the VoiceChannelEffect class that represents an effect used in a voice channel, such as an emoji reaction (link, link)
  • Add a new event name, documentation, and parameter type for the voiceChannelEffectSend event to the Constants.js file (link, link, link)
  • Define the possible animation types of the voice channel effect using the createEnum function (link, link)

Status and versioning classification:

  • I know how to update typings and have done so
  • This PR changes the library's interface (methods or parameters added)

jaw0r3k avatar Apr 01 '23 13:04 jaw0r3k

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

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
discord-js-guide ⬜️ Ignored (Inspect) Apr 2, 2023 1:24pm

vercel[bot] avatar Apr 01 '23 13:04 vercel[bot]

@jaw0r3k is attempting to deploy a commit to the discordjs Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Apr 01 '23 13:04 vercel[bot]