Skip to content

Commit

Permalink
removed unused aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
yashpaliwal-bst authored and yashpaliwal-bst committed May 13, 2024
1 parent 6ff189f commit bbbe134
Showing 1 changed file with 4 additions and 30 deletions.
34 changes: 4 additions & 30 deletions discord/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit bbbe134

Please sign in to comment.