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 ef27b55 commit c4b71a8Copy full SHA for c4b71a8
discord_slash/model.py
@@ -11,8 +11,8 @@ def __init__(self,
11
_discord: commands.Bot):
12
self.__token = _json["token"]
13
self.name = _json["data"]["name"]
14
- self.__id = _json["id"]
15
- self.id = _json["data"]["id"]
+ self.id = _json["id"]
+ self.command_id = _json["data"]["id"]
16
self._http = _http
17
self.guild: discord.Guild = _discord.get_guild(int(_json["guild_id"]))
18
self.author: discord.Member = self.guild.get_member(int(_json["member"]["user"]["id"]))
@@ -34,7 +34,7 @@ async def send(self,
34
"allowed_mentions": []
35
}
36
37
- await self._http.post(base, self.__id, self.__token)
+ await self._http.post(base, self.id, self.__token)
38
39
40
"""
0 commit comments