From bbbe134e57a7d54bebc7d972196c2f7f9d486a13 Mon Sep 17 00:00:00 2001 From: yashpaliwal-bst Date: Mon, 13 May 2024 18:26:01 +0530 Subject: [PATCH] removed unused aliases --- discord/permissions.py | 34 ++++------------------------------ 1 file changed, 4 insertions(+), 30 deletions(-) diff --git a/discord/permissions.py b/discord/permissions.py index 99c9f8612c..70d380b7e5 100644 --- a/discord/permissions.py +++ b/discord/permissions.py @@ -371,14 +371,6 @@ def view_channel(self) -> int: """:class:`bool`: Returns ``True`` if a user can view all or specific channels.""" return 1 << 10 - @make_permission_alias("view_channel") - def read_messages(self) -> int: - """:class:`bool`: An alias for :attr:`view_channel`. - - .. versionadded:: 1.3 - """ - return 1 << 10 - @flag_value def send_messages(self) -> int: """:class:`bool`: Returns ``True`` if a user can send messages from all or specific text channels.""" @@ -420,16 +412,8 @@ def mention_everyone(self) -> int: return 1 << 17 @flag_value - def external_emojis(self) -> int: - """:class:`bool`: Returns ``True`` if a user can use emojis from other guilds.""" - return 1 << 18 - - @make_permission_alias("external_emojis") def use_external_emojis(self) -> int: - """:class:`bool`: An alias for :attr:`external_emojis`. - - .. versionadded:: 1.3 - """ + """:class:`bool`: Returns ``True`` if a user can use emojis from other guilds.""" return 1 << 18 @flag_value @@ -571,20 +555,13 @@ def create_private_threads(self) -> int: return 1 << 36 @flag_value - def external_stickers(self) -> int: + def use_external_stickers(self) -> int: """:class:`bool`: Returns ``True`` if a user can use stickers from other guilds. .. versionadded:: 2.0 """ return 1 << 37 - @make_permission_alias("external_stickers") - def use_external_stickers(self) -> int: - """:class:`bool`: An alias for :attr:`external_stickers`. - - .. versionadded:: 2.0 - """ - return 1 << 37 @flag_value def send_messages_in_threads(self) -> int: @@ -595,7 +572,7 @@ def send_messages_in_threads(self) -> int: return 1 << 38 @flag_value - def start_embedded_activities(self) -> int: + def use_embedded_activities(self) -> int: """:class:`bool`: Returns ``True`` if a user can launch an activity flagged 'EMBEDDED' in a voice channel. .. versionadded:: 2.0 @@ -735,7 +712,6 @@ class PermissionOverwrite: view_audit_log: bool | None priority_speaker: bool | None stream: bool | None - read_messages: bool | None view_channel: bool | None send_messages: bool | None send_tts_messages: bool | None @@ -744,7 +720,6 @@ class PermissionOverwrite: attach_files: bool | None read_message_history: bool | None mention_everyone: bool | None - external_emojis: bool | None use_external_emojis: bool | None view_guild_insights: bool | None connect: bool | None @@ -767,9 +742,8 @@ class PermissionOverwrite: create_public_threads: bool | None create_private_threads: bool | None send_messages_in_threads: bool | None - external_stickers: bool | None use_external_stickers: bool | None - start_embedded_activities: bool | None + use_embedded_activities: bool | None moderate_members: bool | None send_voice_messages: bool | None view_creator_monetization_analytics: bool | None