(
self,
webhook_id: int,
token: str,
message_id: int,
*,
session: aiohttp.ClientSession,
proxy: Optional[str] = None,
proxy_auth: Optional[aiohttp.BasicAuth] = None,
payload: Optional[Dict[str, Any]] = None,
multipart: Optional[List[Dict[str, Any]]] = None,
files: Optional[Sequence[File]] = None,
thread_id: Optional[int] = None,
with_components: bool = False,
)
| 352 | return self.request(route, session=session, proxy=proxy, proxy_auth=proxy_auth, params=params) |
| 353 | |
| 354 | def edit_webhook_message( |
| 355 | self, |
| 356 | webhook_id: int, |
| 357 | token: str, |
| 358 | message_id: int, |
| 359 | *, |
| 360 | session: aiohttp.ClientSession, |
| 361 | proxy: Optional[str] = None, |
| 362 | proxy_auth: Optional[aiohttp.BasicAuth] = None, |
| 363 | payload: Optional[Dict[str, Any]] = None, |
| 364 | multipart: Optional[List[Dict[str, Any]]] = None, |
| 365 | files: Optional[Sequence[File]] = None, |
| 366 | thread_id: Optional[int] = None, |
| 367 | with_components: bool = False, |
| 368 | ) -> Response[MessagePayload]: |
| 369 | route = Route( |
| 370 | 'PATCH', |
| 371 | '/webhooks/{webhook_id}/{webhook_token}/messages/{message_id}', |
| 372 | webhook_id=webhook_id, |
| 373 | webhook_token=token, |
| 374 | message_id=message_id, |
| 375 | ) |
| 376 | params = {'with_components': int(with_components)} |
| 377 | if thread_id: |
| 378 | params['thread_id'] = thread_id |
| 379 | return self.request( |
| 380 | route, |
| 381 | session=session, |
| 382 | proxy=proxy, |
| 383 | proxy_auth=proxy_auth, |
| 384 | payload=payload, |
| 385 | multipart=multipart, |
| 386 | files=files, |
| 387 | params=params, |
| 388 | ) |
| 389 | |
| 390 | def delete_webhook_message( |
| 391 | self, |
no test coverage detected