Browse Source

Remove unnecessary ..versionaddeds and nonsensical alias

pull/10109/head
dolfies 3 years ago
parent
commit
1154e2031e
  1. 85
      discord/flags.py

85
discord/flags.py

@ -322,17 +322,6 @@ class MessageFlags(BaseFlags):
""" """
return 256 return 256
@alias_flag_value
def failed_to_mention_roles(self):
""":class:`bool`: Returns ``True`` if the source message failed to
mention some roles and add their members to the thread.
This is an alias of :attr:`failed_to_mention_some_roles_in_thread`.
.. versionadded:: 2.0
"""
return 256
@fill_with_flags() @fill_with_flags()
class PublicUserFlags(BaseFlags): class PublicUserFlags(BaseFlags):
@ -682,10 +671,7 @@ class ApplicationFlags(BaseFlags):
@alias_flag_value @alias_flag_value
def presence(self): def presence(self):
""":class:`bool`: Alias for :attr:`gateway_presence`. """:class:`bool`: Alias for :attr:`gateway_presence`."""
.. versionadded:: 2.0
"""
return 1 << 12 return 1 << 12
@flag_value @flag_value
@ -697,10 +683,7 @@ class ApplicationFlags(BaseFlags):
@alias_flag_value @alias_flag_value
def presence_limited(self): def presence_limited(self):
""":class:`bool`: Alias for :attr:`gateway_presence_limited`. """:class:`bool`: Alias for :attr:`gateway_presence_limited`."""
.. versionadded:: 2.0
"""
return 1 << 13 return 1 << 13
@flag_value @flag_value
@ -712,10 +695,7 @@ class ApplicationFlags(BaseFlags):
@alias_flag_value @alias_flag_value
def guild_members(self): def guild_members(self):
""":class:`bool`: Alias for :attr:`gateway_guild_members`. """:class:`bool`: Alias for :attr:`gateway_guild_members`."""
.. versionadded:: 2.0
"""
return 1 << 14 return 1 << 14
@flag_value @flag_value
@ -725,73 +705,52 @@ class ApplicationFlags(BaseFlags):
""" """
return 1 << 15 return 1 << 15
@flag_value
def verification_pending_guild_limit(self):
""":class:`bool`: Returns ``True`` if the application is currently pending verification
and has hit the guild limit.
"""
return 1 << 16
@flag_value
def embedded(self):
""":class:`bool`: Returns ``True`` if the application is embedded within the Discord client."""
return 1 << 17
@alias_flag_value @alias_flag_value
def guild_members_limited(self): def guild_members_limited(self):
""":class:`bool`: Alias for :attr:`gateway_guild_members_limited`. """:class:`bool`: Alias for :attr:`gateway_guild_members_limited`."""
.. versionadded:: 2.0
"""
return 1 << 15 return 1 << 15
@flag_value @flag_value
def gateway_message_content(self): def gateway_message_content(self):
""":class:`bool`: Returns ``True`` if the application is verified and is allowed to """:class:`bool`: Returns ``True`` if the application is verified and is allowed to
receive message content. receive message content."""
.. versionadded:: 2.0
"""
return 1 << 18 return 1 << 18
@alias_flag_value @alias_flag_value
def message_content(self): def message_content(self):
""":class:`bool`: Alias for :attr:`gateway_message_content`. """:class:`bool`: Alias for :attr:`gateway_message_content`."""
.. versionadded:: 2.0
"""
return 1 << 18 return 1 << 18
@flag_value @flag_value
def gateway_message_content_limited(self): def gateway_message_content_limited(self):
""":class:`bool`: Returns ``True`` if the application is allowed to receive """:class:`bool`: Returns ``True`` if the application is allowed to receive
message content but is not whitelisted. message content but is not whitelisted."""
.. versionadded:: 2.0
"""
return 1 << 19 return 1 << 19
@alias_flag_value @alias_flag_value
def message_content_limited(self): def message_content_limited(self):
""":class:`bool`: Alias for :attr:`gateway_message_content_limited`. """:class:`bool`: Alias for :attr:`gateway_message_content_limited`."""
.. versionadded:: 2.0
"""
return 1 << 19 return 1 << 19
@flag_value
def verification_pending_guild_limit(self):
""":class:`bool`: Returns ``True`` if the application is currently pending verification
and has hit the guild limit.
"""
return 1 << 16
@flag_value
def embedded(self):
""":class:`bool`: Returns ``True`` if the application is embedded within the Discord client."""
return 1 << 17
@flag_value @flag_value
def embedded_first_party(self): def embedded_first_party(self):
""":class:`bool`: Returns ``True`` if the embedded application is published by Discord. """:class:`bool`: Returns ``True`` if the embedded application is published by Discord."""
.. versionadded:: 2.0
"""
return 1 << 20 return 1 << 20
@flag_value @flag_value
def embedded_released(self): def embedded_released(self):
""":class:`bool`: Returns ``True`` if the embedded application is released to the public. """:class:`bool`: Returns ``True`` if the embedded application is released to the public."""
.. versionadded:: 2.0
"""
return 1 << 1 return 1 << 1

Loading…
Cancel
Save