diff options
| author | Nadir Chowdhury <[email protected]> | 2021-02-23 08:36:37 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-02-23 03:36:37 -0500 |
| commit | 427e387a2f487cf27d4a7ed5b49cc4c4bcae58ed (patch) | |
| tree | a19af8a9417958a732452c2cb31a2075f5e9ab97 /discord/message.py | |
| parent | [commands] Allow relative paths when handling extensions (diff) | |
| download | discord.py-427e387a2f487cf27d4a7ed5b49cc4c4bcae58ed.tar.xz discord.py-427e387a2f487cf27d4a7ed5b49cc4c4bcae58ed.zip | |
Deprecate non-bot methods
Diffstat (limited to 'discord/message.py')
| -rw-r--r-- | discord/message.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/discord/message.py b/discord/message.py index bdb9e05d..535a401f 100644 --- a/discord/message.py +++ b/discord/message.py @@ -415,6 +415,9 @@ class Message(Hashable): call: Optional[:class:`CallMessage`] The call that the message refers to. This is only applicable to messages of type :attr:`MessageType.call`. + + .. deprecated:: 1.7 + reference: Optional[:class:`~discord.MessageReference`] The message that this message references. This is only applicable to messages of type :attr:`MessageType.pins_add`, crossposted messages created by a @@ -1244,6 +1247,7 @@ class Message(Hashable): """ await self._state.http.clear_reactions(self.channel.id, self.id) + @utils.deprecated() async def ack(self): """|coro| @@ -1251,6 +1255,8 @@ class Message(Hashable): The user must not be a bot user. + .. deprecated:: 1.7 + Raises ------- HTTPException |