Skip to content

Commit 563d3e3

Browse files
committed
fix: pass in reason
1 parent 93e6d26 commit 563d3e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interactions/models/discord/message.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,7 @@ async def pin(self, reason: str | None = None) -> None:
941941
reason: The optional reason for pinning this message
942942
943943
"""
944-
await self._client.http.pin_message(self._channel_id, self.id)
944+
await self._client.http.pin_message(self._channel_id, self.id, reason)
945945
self.pinned = True
946946

947947
async def unpin(self, reason: str | None = None) -> None:
@@ -952,7 +952,7 @@ async def unpin(self, reason: str | None = None) -> None:
952952
reason: The optional reason for unpinning this message
953953
954954
"""
955-
await self._client.http.unpin_message(self._channel_id, self.id)
955+
await self._client.http.unpin_message(self._channel_id, self.id, reason)
956956
self.pinned = False
957957

958958
async def publish(self) -> None:

0 commit comments

Comments
 (0)