You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Prints exception if not overrided or has no listener for error.
735
734
self.logger.exception(f"An exception has occurred while executing command `{ctx.name}`:")
736
-
737
-
738
-
classSlashCommandOptionType(IntEnum):
739
-
"""
740
-
Equivalent of `ApplicationCommandOptionType <https://discord.com/developers/docs/interactions/slash-commands#applicationcommandoptiontype>`_ in the Discord API.
Copy file name to clipboardExpand all lines: discord_slash/model.py
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@
3
3
fromdiscord.extimportcommands
4
4
from . importhttp
5
5
from . importerror
6
+
fromenumimportIntEnum
6
7
7
8
8
9
classSlashContext:
@@ -282,3 +283,17 @@ def invoke(self, *args):
282
283
:return: Coroutine
283
284
"""
284
285
returnself.func(self.cog, *args)
286
+
287
+
288
+
classSlashCommandOptionType(IntEnum):
289
+
"""
290
+
Equivalent of `ApplicationCommandOptionType <https://discord.com/developers/docs/interactions/slash-commands#applicationcommandoptiontype>`_ in the Discord API.
0 commit comments