Spaces:
Running
Running
Try readd parameters
Browse files- discord_bot.py +2 -1
discord_bot.py
CHANGED
@@ -134,7 +134,8 @@ for command in json_data["command"]:
|
|
134 |
tree_command = app_commands.Command(
|
135 |
name=command["name"],
|
136 |
description=command["description"],
|
137 |
-
callback=dynamic_command
|
|
|
138 |
)
|
139 |
|
140 |
# 将命令添加到 bot 的 command tree
|
|
|
134 |
tree_command = app_commands.Command(
|
135 |
name=command["name"],
|
136 |
description=command["description"],
|
137 |
+
callback=dynamic_command,
|
138 |
+
parameters=[]
|
139 |
)
|
140 |
|
141 |
# 将命令添加到 bot 的 command tree
|