Skip to content

Commit 7e7cec0

Browse files
authored
fixed an little mistake in the http.py
1 parent a5adde0 commit 7e7cec0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

discord/http.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -453,11 +453,10 @@ def post_initial_response(self, use_webhook, _resp, interaction_id, token, appli
453453

454454
def edit_interaction_response(self, use_webhook, interaction_id, token, application_id, deffered, **fields):
455455
if not deffered:
456-
base = {'data': fields}
457-
base['type'] = 7
456+
fields = {'data': fields}
457+
fields['type'] = 7
458458
r = Route("POST", f'/webhooks/{application_id}/{token}/callback' if use_webhook is True else f"/interactions/{interaction_id}/{token}/callback", self.V8BASE)
459459
else:
460-
base = fields
461460
r = Route('PATCH', f'/webhooks/{application_id}/{token}/messages/@original', self.V8BASE)
462461
return self.request(r, json=fields)
463462

0 commit comments

Comments
 (0)