Skip to content

Commit 58cad18

Browse files
authored
Merge pull request #616 from Pycord-Development/perm-alias
Add alias use_application_commands for slash
2 parents 82e836b + 47c5943 commit 58cad18

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

discord/permissions.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,14 @@ def use_slash_commands(self) -> int:
487487
.. versionadded:: 1.7
488488
"""
489489
return 1 << 31
490+
491+
@make_permission_alias('use_slash_commands')
492+
def use_application_commands(self) -> int:
493+
""":class:`bool`: An alias for :attr:`use_slash_commands`.
494+
495+
.. versionadded:: 2.0
496+
"""
497+
return 1 << 31
490498

491499
@flag_value
492500
def request_to_speak(self) -> int:

0 commit comments

Comments
 (0)