|
|
@ -1471,6 +1471,10 @@ class Webhook(BaseWebhook): |
|
|
|
if view is not MISSING: |
|
|
|
if isinstance(self._state, _WebhookState): |
|
|
|
raise ValueError('Webhook views require an associated state with the webhook') |
|
|
|
|
|
|
|
if not hasattr(view, '__discord_ui_view__'): |
|
|
|
raise TypeError(f'expected view parameter to be of type View not {view.__class__!r}') |
|
|
|
|
|
|
|
if ephemeral is True and view.timeout is None: |
|
|
|
view.timeout = 15 * 60.0 |
|
|
|
|
|
|
|