diff --git a/CHANGELOG.md b/CHANGELOG.md index d8cb6480ec..9515f21e80 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,8 @@ These changes are available on the `master` branch, but have not yet been releas ### Fixed +- Fix error message for `Guild.create_sticker`. + ([#3263](https://github.com/Pycord-Development/pycord/pull/3263)) - Fix typehint for `SlashCommandGroup.__new__`. ([#3235](https://github.com/Pycord-Development/pycord/pull/3235)) - Include `bypass_slowmode` in `Permissions.all`. diff --git a/discord/guild.py b/discord/guild.py index 4ecbfe57bd..0f9fbdf432 100644 --- a/discord/guild.py +++ b/discord/guild.py @@ -3084,7 +3084,7 @@ async def create_sticker( raise TypeError('"name" parameter must be 2 to 30 characters long.') if description and not (2 <= len(description) <= 100): - raise TypeError('"description" parameter must be 2 to 200 characters long.') + raise TypeError('"description" parameter must be 2 to 100 characters long.') payload = {"name": name, "description": description or ""} @@ -3327,7 +3327,7 @@ async def fetch_role(self, role_id: int) -> Role: data = await self._state.http.get_role(self.id, role_id) return Role(guild=self, state=self._state, data=data) - async def _fetch_role(self, role_id: int) -> Role: + async def _fetch_role(self, role_id: int) -> Role | None: """|coro| Retrieves a :class:`Role` that the guild has.