(webhookId: string, token: string, messageId: string, fields: CreateMessageFields)
| 1333 | } |
| 1334 | |
| 1335 | export async function editWebhookMessage(webhookId: string, token: string, messageId: string, fields: CreateMessageFields) { |
| 1336 | const message = await OpWrappers.callAsyncOp({ |
| 1337 | kind: "discord_webhook_message_edit", |
| 1338 | arg: { |
| 1339 | webhook_id: webhookId, |
| 1340 | token: token, |
| 1341 | message_id: messageId, |
| 1342 | fields: toOpMessageFields(fields) |
| 1343 | } |
| 1344 | }) |
| 1345 | |
| 1346 | return new Message(message) |
| 1347 | } |
| 1348 | |
| 1349 | export async function deleteWebhookMessage(webhookId: string, token: string, messageId: string) { |
| 1350 | await OpWrappers.callAsyncOp({ |
nothing calls this directly
no test coverage detected