joytou commited on
Commit
a3e84c1
·
1 Parent(s): 61b29e1

Try readd parameters

Browse files
Files changed (1) hide show
  1. 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