Skip to content
This repository has been archived by the owner on Aug 28, 2019. It is now read-only.

Commit

Permalink
Actually use a 15 minute timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Rapptz committed May 30, 2021
1 parent 7b1c57e commit 71b35d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion discord/interactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ async def send_message(

if view is not MISSING:
if ephemeral and view.timeout is None:
view.timeout = 15 * 60.0
view.timeout = 54000.0 # 15 minutes

self._parent._state.store_view(view)

Expand Down
2 changes: 1 addition & 1 deletion discord/webhook/async_.py
Original file line number Diff line number Diff line change
Expand Up @@ -1296,7 +1296,7 @@ async def send(
if isinstance(self._state, _WebhookState):
raise InvalidArgument('Webhook views require an associated state with the webhook')
if ephemeral is True and view.timeout is None:
view.timeout = 15 * 60.0
view.timeout = 54000.0 # 15 minutes

params = handle_message_parameters(
content=content,
Expand Down

0 comments on commit 71b35d2

Please sign in to comment.