pycord
pycord copied to clipboard
feat: :sparkles: Soundboard
Summary
Soundboard
Follows up on #2321 Fixes #2216
Information
- [x] This PR fixes an issue.
- [x] This PR adds something new (e.g. new method or parameters).
- [ ] This PR is a breaking change (e.g. methods or parameters removed/renamed).
- [ ] This PR is not a code change (e.g. documentation, README, typehinting, examples, ...).
Checklist
- [x] I have searched the open pull requests for duplicates.
- [x] If code changes were made then they have been tested.
- [x] I have updated the documentation to reflect the changes.
- [ ] If
type: ignorecomments were used, a comment is also left explaining why. - [x] I have updated the changelog to include these changes.
To be implemented
- [x]
MORE_SOUNDBOARDguild feature flag inGuild.soundboard_limitandGuild.features - [x]
SOUNDBOARDguild feature flag inGuild.features - [x] GET
/soundboard-default-soundsinClient.fetch_default_sounds - [x] GET
/guilds/{guild.id}/soundboard-soundsinGuild.fetch_sounds - [x] GET
/guilds/{guild.id}/soundboard-sounds/{sound.id}inGuild.fetch_sound - [x] POST
/channels/{channel.id}/send-soundboard-soundinVoiceChannel.send_soundboard_sound - [x] POST
/guilds/{guild.id}/soundboard-soundsinGuild.create_sound - [x] PATCH
/guilds/{guild.id}/soundboard-sounds/{sound.id}inSoundboardSound.edit - [x] DELETE
/guilds/{guild.id}/soundboard-sounds/{sound.id}inSoundboardSound.delete - [x]
GUILD_SOUNDBOARD_SOUND_CREATE(Guild soundboard sound was created) - [x]
GUILD_SOUNDBOARD_SOUND_UPDATE(Guild soundboard sound was updated) - [x]
GUILD_SOUNDBOARD_SOUND_DELETE(Guild soundboard sound was deleted) - [x]
GUILD_SOUNDBOARD_SOUNDS_UPDATE(Guild soundboard sounds were updated) - [x]
VOICE_CHANNEL_EFFECT_SEND(Someone sent an effect in a voice channel the current user is connected to) inon_voice_channel_effect_send
Todo
- [x] Docstrings
- [x] Example &/ guide
- [x] Cleanup and triple check the old code
- [x]
__repr__
@Lulalaby You mentioned in #2216
Note: soundboard sounds can not be dispatched by bots. Only managed.
It's curious that they documented /channels/{channel.id}/send-soundboard-sound (https://discord.com/developers/docs/resources/soundboard#send-soundboard-sound) then... Did that change in the mean time ?
yeah, advaith changed it
There.
Also this pr might depend on #2621 as I used typing_extensions in some places
Is there a reason soundboard gateway events weren't included?
I preferred work on it after and felt like soundboard had waited long enough before being implemented - and would for make a followup pr to add them
I preferred work on it after and felt like soundboard had waited long enough before being implemented - and would for make a followup pr to add them
gateway events aren't that difficult to implement, would take a few minutes
~~Also, reiterating that this pr depends on #2621 or else it would break as this pr uses typing_extensions directly.~~ Added it to requirements
k
for reference https://github.com/discord/discord-api-docs/pull/7357
Still waiting to get soundmoji access...
forget soundmoji, it got rolled back to 0
tested send_soundboard_sound, fetch_default_sounds, get_sound, guild.sounds and everything works fine
Please someone take a look at this, imagine not having soundboard in 2,7
@Lulalaby
could this pls review and merged ? it been almost a year
Merge conflicts
@Lulalaby should be good
This pull request is in the In review step of the Pycord workflow.
Waiting for review from these teams:
- All Contributors (1 of 2 required)
- Pending reviewers: @Paillat-dev, @plun1331, @Dorukyum, @JustaSqu1d, @Lulalaby, @Lumabots
- Maintainers (0 of 1 required)
- Pending reviewers: @plun1331, @Dorukyum, @Lulalaby, @BobDotCom
It is @Paillat-dev's turn to determine what is required to move this PR forward.
It is required for this PR to move forward to get some reviews
@Lumabots do u have time to test it rq
@Lumabots do u have time to test it rq
Give me 5min and I'll test it
tested send_soundboard_sound, fetch_default_sounds, get_sound, guild.sounds and everything works fine
then approve