Skip to content

Commit 478f01c

Browse files
committed
Renamed SlashContext id -> interaction_id
1 parent 73063ee commit 478f01c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

discord_slash/model.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
"""

0 commit comments

Comments
 (0)