@classmethod<EOL><INDENT>def partial(cls, id, token, *, adapter):<DEDENT>
if not isinstance(adapter, WebhookAdapter):<EOL><INDENT>raise TypeError('<STR_LIT>')<EOL><DEDENT>data = {<EOL>'<STR_LIT:id>': id,<EOL>'<STR_LIT>': token<EOL>}<EOL>return cls(data, adapter=adapter)<EOL>
Creates a partial :class:`Webhook`.

        A partial webhook is just a webhook object with an ID and a token.

        Parameters
        -----------
        id: :class:`int`
            The ID of the webhook.
        token: :class:`str`
            The authentication token of the webhook.
        adapter: :class:`WebhookAdapter`
            The webhook adapter to use when sending requests. This is
            typically :class:`AsyncWebhookAdapter` for ``aiohttp`` or
            :class:`RequestsWebhookAdapter` for ``requests``.