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: Soundboard #2623

Open
wants to merge 35 commits into
base: master
Choose a base branch
from

Conversation

Paillat-dev
Copy link
Contributor

@Paillat-dev Paillat-dev commented Oct 24, 2024

Summary

Soundboard

Follows up on #2321
Fixes #2216

Information

  • This PR fixes an issue.
  • 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

  • I have searched the open pull requests for duplicates.
  • If code changes were made then they have been tested.
    • I have updated the documentation to reflect the changes.
  • If type: ignore comments were used, a comment is also left explaining why.
  • I have updated the changelog to include these changes.

@Paillat-dev Paillat-dev changed the title Soundboard feat: Soundboard Oct 24, 2024
@Paillat-dev
Copy link
Contributor Author

Paillat-dev commented Oct 24, 2024

To be implemented

  • MORE_SOUNDBOARD guild feature flag in Guild.soundboard_limit and Guild.features
  • SOUNDBOARD guild feature flag in Guild.features
  • GET /soundboard-default-sounds in Client.fetch_default_sounds
  • GET /guilds/{guild.id}/soundboard-sounds in Guild.fetch_sounds
  • GET /guilds/{guild.id}/soundboard-sounds/{sound.id} in Guild.fetch_sound
  • POST /channels/{channel.id}/send-soundboard-sound in VoiceChannel.send_soundboard_sound
  • POST /guilds/{guild.id}/soundboard-sounds in Guild.create_sound
  • PATCH /guilds/{guild.id}/soundboard-sounds/{sound.id} in SoundboardSound.edit
  • DELETE /guilds/{guild.id}/soundboard-sounds/{sound.id} in SoundboardSound.delete
  • GUILD_SOUNDBOARD_SOUND_CREATE (Guild soundboard sound was created)
  • GUILD_SOUNDBOARD_SOUND_UPDATE (Guild soundboard sound was updated)
  • GUILD_SOUNDBOARD_SOUND_DELETE (Guild soundboard sound was deleted)
  • GUILD_SOUNDBOARD_SOUNDS_UPDATE (Guild soundboard sounds were updated)
  • VOICE_CHANNEL_EFFECT_SEND (Someone sent an effect in a voice channel the current user is connected to) in on_voice_channel_effect_send

Todo

  • Docstrings
  • Example &/ guide
  • Cleanup and triple check the old code
  • __repr__

@Paillat-dev Paillat-dev force-pushed the soundboard branch 2 times, most recently from 0547338 to 8811e76 Compare October 24, 2024 22:20
@Paillat-dev
Copy link
Contributor Author

Paillat-dev commented Oct 24, 2024

@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 ?

discord/soundboard.py Outdated Show resolved Hide resolved
@Lulalaby
Copy link
Member

yeah, advaith changed it

@Paillat-dev Paillat-dev force-pushed the soundboard branch 4 times, most recently from 4babd81 to 8a9ec19 Compare October 25, 2024 13:22
@Paillat-dev Paillat-dev marked this pull request as ready for review October 25, 2024 13:50
@Paillat-dev Paillat-dev requested a review from a team as a code owner October 25, 2024 13:50
@pullapprove4 pullapprove4 bot requested a review from BobDotCom October 25, 2024 13:50
Copy link
Member

@plun1331 plun1331 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Objects need to be added to docs

@Paillat-dev
Copy link
Contributor Author

There.

@JustaSqu1d JustaSqu1d added the API Reflection Discords API wasn't correctly reflected in the lib label Dec 12, 2024
Copy link
Member

@JustaSqu1d JustaSqu1d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

grammar, usage, and mechanics

CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
discord/channel.py Outdated Show resolved Hide resolved
discord/channel.py Outdated Show resolved Hide resolved
discord/channel.py Outdated Show resolved Hide resolved
discord/soundboard.py Outdated Show resolved Hide resolved
discord/soundboard.py Outdated Show resolved Hide resolved
docs/api/events.rst Outdated Show resolved Hide resolved
docs/api/events.rst Outdated Show resolved Hide resolved
examples/soundboard.py Outdated Show resolved Hide resolved
Copy link
Member

@JustaSqu1d JustaSqu1d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grammar.

Also, add the newly added enums to the enum docs.

CHANGELOG.md Outdated Show resolved Hide resolved
discord/channel.py Outdated Show resolved Hide resolved
discord/enums.py Outdated Show resolved Hide resolved
discord/guild.py Outdated Show resolved Hide resolved
discord/raw_models.py Outdated Show resolved Hide resolved
examples/soundboard.py Outdated Show resolved Hide resolved
examples/soundboard.py Outdated Show resolved Hide resolved
discord/guild.py Outdated Show resolved Hide resolved
discord/guild.py Outdated Show resolved Hide resolved
discord/client.py Outdated Show resolved Hide resolved
discord/client.py Outdated Show resolved Hide resolved
discord/client.py Outdated Show resolved Hide resolved
discord/soundboard.py Outdated Show resolved Hide resolved
discord/soundboard.py Outdated Show resolved Hide resolved
discord/types/soundboard.py Outdated Show resolved Hide resolved
discord/soundboard.py Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Reflection Discords API wasn't correctly reflected in the lib PA: All Contributors pending PA: Maintainers pending
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Soundboard
6 participants