Skip to content

Commit

Permalink
✏️ Grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
Paillat-dev committed Dec 17, 2024
1 parent 2bd05aa commit e7f271e
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ These changes are available on the `master` branch, but have not yet been releas
`Permissions.use_external_sounds` and
`Permissions.view_creator_monetization_analytics`.
([#2620](https://github.com/Pycord-Development/pycord/pull/2620))
- Added the following soundboard related features:
- Added the following soundboard-related features:
- Manage guild soundboard sounds with `Guild.fetch_sounds()`, `Guild.create_sound()`,
`SoundboardSound.edit()`, and `SoundboardSound.delete()`.
- Access Discord default sounds with `Client.fetch_default_sounds()`.
Expand Down
2 changes: 1 addition & 1 deletion discord/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -3266,7 +3266,7 @@ class VoiceChannelSoundEffect(PartialSoundboardSound): ...


class VoiceChannelEffectSendEvent:
"""Represents the payload for an :func:`on_voice_channel_effect_send`
"""Represents the payload for an :func:`on_voice_channel_effect_send`.
.. versionadded:: 2.7
Expand Down
2 changes: 1 addition & 1 deletion discord/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -1056,7 +1056,7 @@ class PollLayoutType(Enum):


class VoiceChannelEffectAnimationType(Enum):
"""Voice channel effect animation type
"""Voice channel effect animation type.
.. versionadded:: 2.7
"""
Expand Down
2 changes: 1 addition & 1 deletion discord/guild.py
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ async def create_sound(
The name of the sound.
sound: :class:`bytes`
The :term:`py:bytes-like object` representing the sound data.
Only MP3 sound files that don't exceed the duration of 5.2s are supported.
Only MP3 sound files that are less than 5.2 seconds long are supported.
volume: :class:`float`
The volume of the sound. Defaults to 1.0.
emoji: Union[:class:`PartialEmoji`, :class:`GuildEmoji`, :class:`str`]
Expand Down
5 changes: 4 additions & 1 deletion discord/raw_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,10 @@ def __init__(self, data: MessagePollVoteEvent, added: bool) -> None:


class RawSoundboardSoundDeleteEvent(_RawReprMixin):
"""Represents the payload for an :func:`on_raw_soundboard_sound_delete`"""
"""Represents the payload for an :func:`on_raw_soundboard_sound_delete`.
.. versionadded 2.7
"""

__slots__ = ("sound_id", "guild_id", "data")

Expand Down
4 changes: 2 additions & 2 deletions examples/soundboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async def on_voice_channel_effect_send(

@discord.slash_command()
async def list_sounds(self, ctx: discord.ApplicationContext):
"""Lists all available sounds in the guild."""
"""Lists all the available sounds in the guild."""
await ctx.defer()

# Fetch both default and guild-specific sounds
Expand Down Expand Up @@ -98,7 +98,7 @@ async def edit_sound(
new_emoji: str | None = None,
new_volume: float | None = None,
):
"""Edit an existing sound in the guild's soundboard."""
"""Edits an existing sound in the guild's soundboard."""
await ctx.defer()

# Find the sound by name
Expand Down

0 comments on commit e7f271e

Please sign in to comment.