-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
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. 🎉 |
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'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
SoundboardSound
is pretty silly, I'm unsure if goingSoudboard
is 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 <[email protected]>
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
,VoiceChannelEffectAnimation
modelsVoiceChannelEffectAnimationType
enumon_voice_channel_effect
eventSoundboardSound
,SoundboardDefaultSound
modelscreate_
,edit_
,delete_
soundfetch_
methods (default sounds, normal sounds, specific sound)Request sounds over the gateway (may be superfluous sincefetch_
methods exist)VoiceChannel.send_sound
methodsoundboard_sounds
property andget_
methods (both forGuild
andClient
)on_soundboard_sound_
events (create, update, delete) +GUILD_SOUNDBOARD_SOUNDS_UPDATE
event (dispatchesupdate
event for every sound in the list)Intents.expressions
->emojis
andemojis_and_stickers
are 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
***
id
has been removedOthers
Default sounds are identified with a
sound_id
,override_path
has been removedRelated PRs: discord/discord-api-docs#6025 (voice channel effects), discord/discord-api-docs#6260 (soundboard)
Checklist
Testing pending