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

Commit 71b35d2

Browse files
committed
Actually use a 15 minute timeout
1 parent 7b1c57e commit 71b35d2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

discord/interactions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ async def send_message(
330330

331331
if view is not MISSING:
332332
if ephemeral and view.timeout is None:
333-
view.timeout = 15 * 60.0
333+
view.timeout = 54000.0 # 15 minutes
334334

335335
self._parent._state.store_view(view)
336336

discord/webhook/async_.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1296,7 +1296,7 @@ async def send(
12961296
if isinstance(self._state, _WebhookState):
12971297
raise InvalidArgument('Webhook views require an associated state with the webhook')
12981298
if ephemeral is True and view.timeout is None:
1299-
view.timeout = 15 * 60.0
1299+
view.timeout = 54000.0 # 15 minutes
13001300

13011301
params = handle_message_parameters(
13021302
content=content,

0 commit comments

Comments
 (0)