Skip to content

Commit cb01a38

Browse files
authored
fix, refactor: Refactor some code/references in internal Context parameters. (#1206)
1 parent 96e58c5 commit cb01a38

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

interactions/client/context.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ async def edit(
503503
try:
504504
res = await self._client.edit_interaction_response(
505505
token=self.token,
506-
application_id=str(self.id),
506+
application_id=str(self.application_id),
507507
data=payload,
508508
files=files,
509509
message_id=self.message.id
@@ -624,13 +624,13 @@ async def delete(self) -> None:
624624
"""
625625
if self.responded and self.message is not None:
626626
await self._client.delete_interaction_response(
627-
application_id=int(self.application_id),
627+
application_id=str(self.application_id),
628628
token=self.token,
629629
message_id=int(self.message.id),
630630
)
631631
else:
632632
await self._client.delete_interaction_response(
633-
application_id=int(self.application_id), token=self.token
633+
application_id=str(self.application_id), token=self.token
634634
)
635635

636636
self.message = None

0 commit comments

Comments
 (0)