Skip to content

Commit 858f6bd

Browse files
Apply suggestions from ray's code review
Co-authored-by: Christopher <[email protected]> Signed-off-by: Forbidden A <[email protected]>
1 parent e46583f commit 858f6bd

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

hikari/api/entity_factory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1590,7 +1590,7 @@ def deserialize_guild_sticker(self, payload: data_binding.JSONObject) -> sticker
15901590

15911591
@abc.abstractmethod
15921592
def deserialize_message_snapshot(self, payload: data_binding.JSONObject) -> message_models.MessageSnapshot:
1593-
"""Parse a raw payload from Discord into a partial message snapshot object.
1593+
"""Parse a raw payload from Discord into a snapshot object.
15941594
15951595
Parameters
15961596
----------

hikari/api/rest.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1387,7 +1387,7 @@ async def forward_message(
13871387
The object or ID of the message to forward.
13881388
channel_from
13891389
The object or ID of the message's channel of origin.
1390-
This field will be ignored if the message provided is a (partial) message object rather than a snowflake.
1390+
This field will be ignored if the message provided is of type [`hikari.messages.PartialMessage`][] rather than [`hikari.snowflakes.Snowflakeish`][].
13911391
13921392
Returns
13931393
-------
@@ -1397,19 +1397,19 @@ async def forward_message(
13971397
Raises
13981398
------
13991399
ValueError
1400-
if the message is not an object and channel_from was not provided.
1400+
If the message is of type [`hikari.snowflakes.Snowflakeish`][] and `channel_from` was not provided.
14011401
hikari.errors.UnauthorizedError
14021402
If you are unauthorized to make the request (invalid/missing token).
14031403
hikari.errors.ForbiddenError
14041404
If you tried to forward a message without
1405-
the [hikari.permissions.Permissions.VIEW_CHANNEL] or [hikari.permissions.Permissions.SEND_MESSAGES].
1405+
the [`hikari.permissions.Permissions.VIEW_CHANNEL`][] or [`hikari.permissions.Permissions.SEND_MESSAGES`][] permissions.
14061406
hikari.errors.NotFoundError
1407-
If the channel or message is not found.
1407+
If the channel or message was not found.
14081408
hikari.errors.RateLimitTooLongError
14091409
Raised in the event that a rate limit occurs that is
14101410
longer than `max_rate_limit` when making a request.
14111411
hikari.errors.InternalServerError
1412-
If an internal error occurs on Discord while handling the request.
1412+
If an internal error occurs on Discords side while handling the request.
14131413
"""
14141414

14151415
@abc.abstractmethod

0 commit comments

Comments
 (0)