Spaces:
Running
Running
remove params
Browse files- discord_bot.py +2 -2
discord_bot.py
CHANGED
@@ -125,8 +125,8 @@ for command in json_data["command"]:
|
|
125 |
await interaction.followup.send(result)
|
126 |
|
127 |
# 动态创建参数
|
128 |
-
params = [app_commands.Parameter(name=param["name"], display_name=param['name'], description=param["description"], type=TYPE_MAPPING[param["type"]], autocomplete=False, required=True)
|
129 |
-
|
130 |
|
131 |
|
132 |
|
|
|
125 |
await interaction.followup.send(result)
|
126 |
|
127 |
# 动态创建参数
|
128 |
+
#params = [app_commands.Parameter(name=param["name"], display_name=param['name'], description=param["description"], type=TYPE_MAPPING[param["type"]], autocomplete=False, required=True)
|
129 |
+
# for param in command["parameters"]]
|
130 |
|
131 |
|
132 |
|