-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Jakub Kuczys <[email protected]>
- Loading branch information
1 parent
2e40ec4
commit bf8c0d0
Showing
7 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.. red app_commands module documentation | ||
==================== | ||
App Commands Package | ||
==================== | ||
|
||
This package acts almost identically to :doc:`discord.ext.app_commands <dpy:interactions/api>`; i.e. | ||
all of the attributes from discord.py's are also in ours. | ||
Some of these attributes, however, have been slightly modified, while others have been added to | ||
extend functionalities used throughout the bot, as outlined below. | ||
|
||
.. autoclass:: redbot.core.app_commands.UserFeedbackCheckFailure | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
"""Errors module for the app_commands package.""" | ||
from discord import app_commands | ||
|
||
|
||
class UserFeedbackCheckFailure(app_commands.CheckFailure): | ||
"""A version of CheckFailure responding with a custom error message.""" | ||
|
||
def __init__(self, message=None, *args): | ||
self.message = message | ||
super().__init__(message, *args) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters