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

Commit

Permalink
chore: Bump version to 1.1.3
Browse files Browse the repository at this point in the history
chore: Bump version to ``1.1.3``
  • Loading branch information
B1ue-Dev authored Aug 8, 2022
2 parents a3d3db8 + 50e4fb6 commit 7a90fad
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
21 changes: 10 additions & 11 deletions interactions/ext/files/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ async def _edit(

if self.message.components is not None or components is not MISSING:
if components is MISSING:
_components = self.message.components
_components = _build_components(components=self.message.components)
elif not components:
_components = []
else:
Expand Down Expand Up @@ -287,9 +287,6 @@ async def _edit(

return payload, files

_Context.send = _send
_Context.edit = _edit


class Files(Extension):
"""I don't know what this does, but it is required to load the extension."""
Expand Down Expand Up @@ -559,7 +556,7 @@ async def component_edit(
:rtype: Message
"""

payload, files = await Context._send(ctx, content, **kwargs)
payload, files = await Context._edit(ctx, content, **kwargs)

msg = None

Expand Down Expand Up @@ -609,11 +606,13 @@ async def component_edit(
return Message(**payload, _client=ctx._client)


CommandContext.send = command_send
CommandContext.edit = command_edit
ComponentContext.send = component_send
ComponentContext.edit = component_edit

def setup(client: Client) -> Files:
"""Setup the extension."""

def setup(client: Client):
_Context.send = Context._send
_Context.edit = Context._edit
CommandContext.send = command_send
CommandContext.edit = command_edit
ComponentContext.send = component_send
ComponentContext.edit = component_edit
return Files(client)
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.2-post.1",
version="1.1.3",
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 7a90fad

Please sign in to comment.