Skip to content

Commit ef200f6

Browse files
Pass 'tree' to to_dict in command list comprehension
Updated the list comprehension to pass the 'tree' argument to the to_dict method for each command. This ensures that command serialization includes the necessary context from 'tree'.
1 parent 6724450 commit ef200f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
template_folder="public",
2121
)
2222
cmd = [
23-
command.to_dict()
23+
command.to_dict(tree)
2424
for command in tree.get_commands(
2525
guild=None if public or len(whitelist_guilds) <= 0 else whitelist_guilds[0]
2626
)

0 commit comments

Comments
 (0)