Skip to content

Commit 47c5943

Browse files
committed
Add alias use_application_commands for slash
1 parent 7353452 commit 47c5943

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)