File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ class SlashContext:
10
10
Kinda similar with discord.ext.commands.Context.
11
11
12
12
:ivar name: Name of the command.
13
- :ivar id: ID of the command message.
13
+ :ivar interaction_id: Interaction ID of the command message.
14
14
:ivar command_id: ID of the command.
15
15
:ivar _http: :class:`.http.SlashCommandRequest` of the client.
16
16
:ivar guild: :class:`discord.Guild` instance of the command message.
@@ -23,7 +23,7 @@ def __init__(self,
23
23
_discord : commands .Bot ):
24
24
self .__token = _json ["token" ]
25
25
self .name = _json ["data" ]["name" ]
26
- self .id = _json ["id" ]
26
+ self .interaction_id = _json ["id" ]
27
27
self .command_id = _json ["data" ]["id" ]
28
28
self ._http = _http
29
29
self .guild : discord .Guild = _discord .get_guild (int (_json ["guild_id" ]))
@@ -59,7 +59,7 @@ async def send(self,
59
59
"allowed_mentions" : []
60
60
}
61
61
}
62
- await self ._http .post (base , self .id , self .__token )
62
+ await self ._http .post (base , self .interaction_id , self .__token )
63
63
64
64
65
65
"""
You can’t perform that action at this time.
0 commit comments