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:
1010 Kinda similar with discord.ext.commands.Context.
1111
1212 :ivar name: Name of the command.
13- :ivar id: ID of the command message.
13+ :ivar interaction_id: Interaction ID of the command message.
1414 :ivar command_id: ID of the command.
1515 :ivar _http: :class:`.http.SlashCommandRequest` of the client.
1616 :ivar guild: :class:`discord.Guild` instance of the command message.
@@ -23,7 +23,7 @@ def __init__(self,
2323 _discord : commands .Bot ):
2424 self .__token = _json ["token" ]
2525 self .name = _json ["data" ]["name" ]
26- self .id = _json ["id" ]
26+ self .interaction_id = _json ["id" ]
2727 self .command_id = _json ["data" ]["id" ]
2828 self ._http = _http
2929 self .guild : discord .Guild = _discord .get_guild (int (_json ["guild_id" ]))
@@ -59,7 +59,7 @@ async def send(self,
5959 "allowed_mentions" : []
6060 }
6161 }
62- await self ._http .post (base , self .id , self .__token )
62+ await self ._http .post (base , self .interaction_id , self .__token )
6363
6464
6565"""
You can’t perform that action at this time.
0 commit comments