Skip to content
This repository has been archived by the owner on Apr 10, 2023. It is now read-only.

Commit

Permalink
Merge pull request #23 from interactions-py/unstable
Browse files Browse the repository at this point in the history
chore: Version bump to 1.1.5
  • Loading branch information
B1ue-Dev authored Oct 5, 2022
2 parents 0cb97f1 + 4fee4cb commit 8a96d2a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions interactions/ext/files/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ async def command_send(
msg = None
if ctx.responded:
res = await Inter_Request._post_followup(
ctx.client,
ctx._client,
data=payload,
files=files,
token=ctx.token,
Expand All @@ -354,7 +354,7 @@ async def command_send(
ctx.message = msg = Message(**res, _client=ctx._client)
else:
await Inter_Request.create_interaction_response(
ctx.client,
ctx._client,
token=ctx.token,
application_id=int(ctx.id),
data=_payload,
Expand Down Expand Up @@ -434,7 +434,7 @@ async def command_edit(
else:
try:
res = await Inter_Request.edit_interaction_response(
ctx.client,
ctx._client,
data=payload,
files=files,
token=ctx.token,
Expand All @@ -453,7 +453,7 @@ async def command_edit(
else:
try:
res = await Inter_Request.edit_interaction_response(
ctx.client, token=ctx.token, application_id=str(ctx.application_id), data=payload, files=files
ctx._client, token=ctx.token, application_id=str(ctx.application_id), data=payload, files=files
)
except LibraryException as e:
if e.code in {10015, 10018}:
Expand Down Expand Up @@ -507,7 +507,7 @@ async def component_send(
msg = None
if ctx.responded:
res = await Inter_Request._post_followup(
ctx.client,
ctx._client,
data=payload,
token=ctx.token,
application_id=str(ctx.application_id),
Expand All @@ -516,7 +516,7 @@ async def component_send(
ctx.message = msg = Message(**res, _client=ctx._client)
else:
await Inter_Request.create_interaction_response(
ctx.client,
ctx._client,
token=ctx.token,
application_id=int(ctx.id),
data=_payload,
Expand Down Expand Up @@ -575,7 +575,7 @@ async def component_edit(
if not ctx.deferred:
ctx.callback = InteractionCallbackType.UPDATE_MESSAGE
await Inter_Request.create_interaction_response(
ctx.client,
ctx._client,
token=ctx.token,
application_id=int(ctx.id),
data={"type": ctx.callback.value, "data": payload},
Expand All @@ -595,15 +595,15 @@ async def component_edit(

elif ctx.callback != InteractionCallbackType.DEFERRED_UPDATE_MESSAGE:
await Inter_Request._post_followup(
ctx.client,
ctx._client,
data=payload,
files=files,
token=ctx.token,
application_id=str(ctx.application_id),
)
else:
res = await Inter_Request.edit_interaction_response(
ctx.client,
ctx._client,
data=payload,
files=files,
token=ctx.token,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name="interactions-files",
version="1.1.4",
version="1.1.5",
description="An extension library for interactions.py allowing files in interaction responses.",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 8a96d2a

Please sign in to comment.