Skip to content

Commit 16c192b

Browse files
committed
Minor changes
1 parent 3d1a5a5 commit 16c192b

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ For now clone this repository and use `discod_slash` folder.
2626
(Maybe will upload this at PyPi soon)
2727

2828
## DOCS
29-
Not yet ready.
29+
Not yet ready.
30+
See [discord-api-docs](https://github.com/discord/discord-api-docs/blob/feature/interactions/docs/interactions/Slash_Commands.md) for some more information.

discord_slash/client.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,13 @@ def wrapper(cmd):
2626
return cmd
2727
return wrapper
2828

29+
def process_options(self, options: dict) -> list:
30+
for x in options:
31+
pass
32+
return []
33+
2934
async def on_socket_response(self, msg):
30-
if not msg["t"] == "INTERACTION_CREATE":
35+
if msg["t"] != "INTERACTION_CREATE":
3136
return
3237
to_use = msg["d"]
3338
if to_use["data"]["name"] in self.commands.keys():

discord_slash/utils/manage_commands.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ async def add_slash_command(bot_id,
1414
"description": description,
1515
"options": options if options else []
1616
}
17-
print(url)
18-
print(base)
1917

2018
async with aiohttp.ClientSession() as session:
2119
async with session.post(url, headers={"Authorization": f"Bot {bot_token}"}, json=base) as resp:

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
discord.py
2+
aiohttp

0 commit comments

Comments
 (0)