Skip to content

Commit

Permalink
Fix DMChannel.is_accepted() to correctly read state (#583)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulofreitas authored Sep 29, 2023
1 parent 40b513b commit 2ded71b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discord/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -3665,7 +3665,7 @@ def is_accepted(self) -> bool:
.. versionadded:: 2.0
"""
return self._message_request if self._message_request is not None else True
return not self._message_request if self._message_request is not None else True

def is_spam(self) -> bool:
""":class:`bool`: Indicates if the direct message is a spam message request.
Expand Down

0 comments on commit 2ded71b

Please sign in to comment.