diff --git a/discord/ext/pages/pagination.py b/discord/ext/pages/pagination.py index 0c51cc1c4b..4b196bfb36 100644 --- a/discord/ext/pages/pagination.py +++ b/discord/ext/pages/pagination.py @@ -756,7 +756,8 @@ async def send( target_message: Optional[str] = None, reference: Optional[Union[discord.Message, discord.MessageReference, discord.PartialMessage]] = None, allowed_mentions: Optional[discord.AllowedMentions] = None, - mention_author: bool = None, + mention_author: Optional[bool] = None, + delete_after: Optional[float] = None, ) -> discord.Message: """Sends a message with the paginated items. @@ -782,6 +783,8 @@ async def send( are used instead. mention_author: Optional[:class:`bool`] If set, overrides the :attr:`~discord.AllowedMentions.replied_user` attribute of ``allowed_mentions``. + delete_after: Optional[:class:`float`] + If set, deletes the paginator after the specified time. Returns -------- @@ -831,6 +834,7 @@ async def send( reference=reference, allowed_mentions=allowed_mentions, mention_author=mention_author, + delete_after=delete_after, ) return self.message