We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ba8acb commit c69f7aeCopy full SHA for c69f7ae
discord_slash/model.py
@@ -10,6 +10,9 @@ class SlashContext:
10
Context of the slash command.\n
11
Kinda similar with discord.ext.commands.Context.
12
13
+ .. warning::
14
+ Do not manually init this model.
15
+
16
:ivar name: Name of the command.
17
:ivar interaction_id: Interaction ID of the command message.
18
:ivar command_id: ID of the command.
@@ -24,7 +27,7 @@ class SlashContext:
24
27
def __init__(self,
25
28
_http: http.SlashCommandRequest,
26
29
_json: dict,
- _discord: commands.Bot):
30
+ _discord: typing.Union[discord.Client, commands.Bot]):
31
self.__token = _json["token"]
32
self.name = _json["data"]["name"]
33
self.interaction_id = _json["id"]
0 commit comments