Skip to content

Commit 4ddbb84

Browse files
authored
Merge pull request #299 from Toricane/patch-1
Allow multiple context menus
2 parents 59d57e0 + 848734f commit 4ddbb84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

discord_slash/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ async def to_dict(self):
303303
}
304304
if y in selected.permissions:
305305
command_dict["permissions"][y] = selected.permissions[y]
306-
wait[y][x] = copy.deepcopy(command_dict)
306+
wait[y][_x] = copy.deepcopy(command_dict)
307307
else:
308308
if "global" not in wait:
309309
wait["global"] = {}
@@ -314,7 +314,7 @@ async def to_dict(self):
314314
"permissions": selected.permissions or {},
315315
"type": selected._type,
316316
}
317-
wait["global"][x] = copy.deepcopy(command_dict)
317+
wait["global"][_x] = copy.deepcopy(command_dict)
318318

319319
continue
320320

0 commit comments

Comments
 (0)