We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98988f4 commit 3da00f0Copy full SHA for 3da00f0
discord/permissions.py
@@ -333,13 +333,13 @@ def stream(self) -> int:
333
return 1 << 9
334
335
@flag_value
336
- def read_messages(self) -> int:
337
- """:class:`bool`: Returns ``True`` if a user can read messages from all or specific text channels."""
+ def view_channel(self) -> int:
+ """:class:`bool`: Returns ``True`` if a user view all or specific channels."""
338
return 1 << 10
339
340
- @make_permission_alias('read_messages')
341
- def view_channel(self) -> int:
342
- """:class:`bool`: An alias for :attr:`read_messages`.
+ @make_permission_alias('view_channel')
+ def read_messages(self) -> int:
+ """:class:`bool`: An alias for :attr:`view_channel`.
343
344
.. versionadded:: 1.3
345
"""
0 commit comments