Skip to content

Commit 84b1534

Browse files
committed
More duplication fix due to same object ID
1 parent bbde60a commit 84b1534

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
@@ -257,11 +257,11 @@ async def to_dict(self):
257257
if sub_sub.allowed_guild_ids:
258258
for i in sub_sub.allowed_guild_ids:
259259
if i not in queue:
260-
queue[i] = base_dict
260+
queue[i] = copy.deepcopy(base_dict)
261261
queue[i]["options"].append(_dict)
262262
else:
263263
if "global" not in queue:
264-
queue["global"] = base_dict
264+
queue["global"] = copy.deepcopy(base_dict)
265265
queue["global"]["options"].append(_dict)
266266
for i in queue:
267267
wait[i][x]["options"].append(queue[i])

0 commit comments

Comments
 (0)