diff --git a/discord/webhook/async_.py b/discord/webhook/async_.py index 6781bc036..2d06a953b 100644 --- a/discord/webhook/async_.py +++ b/discord/webhook/async_.py @@ -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