Method
edit_webhook_with_token
(
self,
webhook_id: int,
token: str,
payload: Dict[str, Any],
*,
session: aiohttp.ClientSession,
proxy: Optional[str] = None,
proxy_auth: Optional[aiohttp.BasicAuth] = None,
reason: Optional[str] = None,
)
Source from the content-addressed store, hash-verified
| 287 | ) |
| 288 | |
| 289 | def edit_webhook_with_token( |
| 290 | self, |
| 291 | webhook_id: int, |
| 292 | token: str, |
| 293 | payload: Dict[str, Any], |
| 294 | *, |
| 295 | session: aiohttp.ClientSession, |
| 296 | proxy: Optional[str] = None, |
| 297 | proxy_auth: Optional[aiohttp.BasicAuth] = None, |
| 298 | reason: Optional[str] = None, |
| 299 | ) -> Response[WebhookPayload]: |
| 300 | route = Route('PATCH', '/webhooks/{webhook_id}/{webhook_token}', webhook_id=webhook_id, webhook_token=token) |
| 301 | return self.request(route, session=session, proxy=proxy, proxy_auth=proxy_auth, reason=reason, payload=payload) |
| 302 | |
| 303 | def execute_webhook( |
| 304 | self, |
Tested by
no test coverage detected