Skip to content

Commit c4b71a8

Browse files
committed
Change SlashContext __id-> / id->command_id
1 parent ef27b55 commit c4b71a8

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
@@ -11,8 +11,8 @@ def __init__(self,
1111
_discord: commands.Bot):
1212
self.__token = _json["token"]
1313
self.name = _json["data"]["name"]
14-
self.__id = _json["id"]
15-
self.id = _json["data"]["id"]
14+
self.id = _json["id"]
15+
self.command_id = _json["data"]["id"]
1616
self._http = _http
1717
self.guild: discord.Guild = _discord.get_guild(int(_json["guild_id"]))
1818
self.author: discord.Member = self.guild.get_member(int(_json["member"]["user"]["id"]))
@@ -34,7 +34,7 @@ async def send(self,
3434
"allowed_mentions": []
3535
}
3636
}
37-
await self._http.post(base, self.__id, self.__token)
37+
await self._http.post(base, self.id, self.__token)
3838

3939

4040
"""

0 commit comments

Comments
 (0)