Skip to content

Commit

Permalink
Pass flags through builder
Browse files Browse the repository at this point in the history
  • Loading branch information
hypergonial committed Sep 11, 2024
1 parent 36a457c commit 9344493
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/changelogs/v4.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ These are all the changelogs for stable releases of hikari-miru (version 4.0.0 t
- Upgrade alluka to `0.3`.
- Message builders returned by `Menu` and `NavigatorView` now try to set `View.message` when issuing a response through them.
- Fix `self.attr` referring to a `DecoratedItem` instead of the item when using a decorator.
- Fix message builders not passing through flags when using their respective response methods.

## v4.1.1

Expand Down
3 changes: 3 additions & 0 deletions miru/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ async def send_to_channel(self, channel: hikari.SnowflakeishOr[hikari.TextableCh
channel=channel,
content=self.content,
embeds=self.embeds or hikari.UNDEFINED,
flags=self.flags,
components=self.components or hikari.UNDEFINED,
attachments=self.attachments or hikari.UNDEFINED,
tts=self.is_tts,
Expand Down Expand Up @@ -138,6 +139,7 @@ async def create_initial_response(self, interaction: hikari.MessageResponseMixin
embeds=self.embeds or hikari.UNDEFINED,
components=self.components or hikari.UNDEFINED,
attachments=self.attachments or hikari.UNDEFINED,
flags=self.flags,
tts=self.is_tts,
mentions_everyone=self.mentions_everyone,
user_mentions=self.user_mentions,
Expand Down Expand Up @@ -187,6 +189,7 @@ async def create_followup(self, interaction: hikari.MessageResponseMixin[t.Any])
embeds=self.embeds or hikari.UNDEFINED,
components=self.components or hikari.UNDEFINED,
attachments=self.attachments or hikari.UNDEFINED,
flags=self.flags,
tts=self.is_tts,
mentions_everyone=self.mentions_everyone,
user_mentions=self.user_mentions,
Expand Down

0 comments on commit 9344493

Please sign in to comment.