Support for Soundboard and VC effects#9349
Conversation
Finished: VC effect + VC sound effect Started: Soundboard support
|
When can we expect this to be undrafted and merged? @Puncher1 |
|
@SvenLie The GET method is still not supported which, at least for me, doesn't make sense to merge it yet. |
Update
|
|
3.x is failing due to aiohttp not building on 3.12 and 3.x is latest Python, so CI is blocked on dependencies and not much I can do there. |
|
This has been tested and is ready for review now. |
|
I believe the issues with 3.x have been resolved now. 🎉 |
Rapptz
left a comment
There was a problem hiding this comment.
I've only done a cursory pass at this. It has merge conflicts currently as well, though this feature is pretty complicated and definitely needs documentation on Discord's end for me to merge it.
There are a few things I'm kind of iffy about, some more important than others:
- The name
SoundboardSoundis pretty silly, I'm unsure if goingSoudboardis any better but it doesn't read as oddly. - The machinery to handle opcode 31 in the gateway seems very complicated for what it is. The chunking mechanism is the way it is because it's expected that multiple events flow in and it needs to be synced and waited. I have no reason to believe soundboard sounds operate the same way but I also have no idea if they do. I tried asking to get clarification on this though I haven't gotten a response yet. I'll update you when I do.
Co-Authored-By: Danny <1695103+Rapptz@users.noreply.github.com>
|
Alright I'm done with the changes. Because of the name, how about just |
|
This will need changes because of the latests commits on the DDevs Docs PR: discord/discord-api-docs@ec86562 |
emoji_id is always None for default sounds
@Rapptz You can now get soundboard sounds via Edit |
user_id is still used in the GUILD_CREATE event
includes new event GUILD_SOUNDBOARD_SOUNDS_UPDATE
If it's superfluous outside of multiple guilds -> sound then it should probably be removed. There isn't an immediate benefit to the complicated machinery being used for soundboards. |
c987db8 to
e917ce0
Compare
efbeebf to
62c8db6
Compare
|
Messed up a bit (almost lost all changes lol), so I had to force push. |
|
The soundboard PR on Discord's side is merged now as well. |
Summary
Last updated: Sep 21, 2024
This PR includes
VoiceChannelEffect,VoiceChannelSoundEffect,VoiceChannelEffectAnimationmodelsVoiceChannelEffectAnimationTypeenumon_voice_channel_effecteventSoundboardSound,SoundboardDefaultSoundmodelscreate_,edit_,delete_soundfetch_methods (default sounds, normal sounds, specific sound)Request sounds over the gateway (may be superfluous sincefetch_methods exist)VoiceChannel.send_soundmethodsoundboard_soundsproperty andget_methods (both forGuildandClient)on_soundboard_sound_events (create, update, delete) +GUILD_SOUNDBOARD_SOUNDS_UPDATEevent (dispatchesupdateevent for every sound in the list)Intents.expressions->emojisandemojis_and_stickersare now both aliasesCurrent Problems [solved]
All problems on Discord's side, which were stated in the related soundboard PR are fixed ✅
* Now available
** The PR doesn't document this behaviour anymore
***
idhas been removedOthers
Default sounds are identified with a
sound_id,override_pathhas been removedRelated PRs: discord/discord-api-docs#6025 (voice channel effects), discord/discord-api-docs#6260 (soundboard)
Checklist
Testing pending