-
Notifications
You must be signed in to change notification settings - Fork 189
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 #1112
base: master
Are you sure you want to change the base?
feat: soundboard #1112
Conversation
return self._state._upgrade_partial_soundboard_sound(partial) | ||
|
||
def __repr__(self) -> str: | ||
return f"<VoiceChannelEffect channel_id={self.channel_id} guild_id={self.guild_id} user_id={self.user_id} emoji={self.emoji} animation_type={self.animation_type} animation_id={self.animation_id} sound_id={self.sound_id} sound_override_path={self.sound_override_path} sound_volume={self.sound_volume}>" |
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.
Should all of these attributes be in the repr? It seems excessive.
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.
This is a temporary thing. I just wanted something for debugging so i didn't have to look at the default repr. I'm going to give it more thought later
Co-Authored-By: EmreTech <50607143+emretech@users.noreply.github.com>
…ake into teaishealthy/issue1047
sound_id: int, | ||
sound_override_path: Optional[str], | ||
sound_volume: Optional[float], |
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.
Why are these parameters prefixed with sound_
when the attributes aren't?
from .types.voice import VoiceChannelEffectSend as VoiceChannelEffectSendPayload | ||
|
||
|
||
class VoiceChannelEffect: |
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.
Make sure to add __slots__
.
Co-Authored-By: EmreTech <50607143+emretech@users.noreply.github.com>
i will pick this up again soon |
i lied, pr is available to be picked up by someone else |
Summary
Implement soundboard and the Voice Channel Effect Send event. Closes #1047
discord/discord-api-docs#6025
discord/discord-api-docs#6260
id
is the samesound_id
, just not available sometimes? ¯\_(ツ)_/¯This is a Code Change
task pyright
and fixed the relevant issues.TODO
Guild
that requests sounds andwait_for
s the sound data ➞fetch_soundboard_sounds
Maybe
Asset
rework into ➞ intoSoundAsset
and ?Asset