Skip to content

Commit

Permalink
update: Pagination to use Message.edit_original when send first message.
Browse files Browse the repository at this point in the history
  • Loading branch information
hawk-tomy committed Feb 26, 2024
1 parent 196ae36 commit 4ef30ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discord/ext/flow/pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ async def _message(self, *, edit_original: bool = False) -> Message:
Button(emoji=LAST_EMOJI, row=self.row, disabled=is_final_page, callback=self._go_to_last_page),
)

return msg._replace(items=items + control_items, edit_original=edit_original)
return msg._replace(items=items + control_items, edit_original=edit_original or msg.edit_original)

def _set_page_number(self, page_number: int) -> None:
if 0 <= page_number < self.max_page:
Expand Down

0 comments on commit 4ef30ef

Please sign in to comment.