MCPcopy Create free account
hub / github.com/Botloader/botloader / editWebhookMessage

Function editWebhookMessage

components/runtime/src/ts/discord/dapi.ts:1335–1347  ·  view source on GitHub ↗
(webhookId: string, token: string, messageId: string, fields: CreateMessageFields)

Source from the content-addressed store, hash-verified

1333}
1334
1335export 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
1349export async function deleteWebhookMessage(webhookId: string, token: string, messageId: string) {
1350 await OpWrappers.callAsyncOp({

Callers

nothing calls this directly

Calls 1

toOpMessageFieldsFunction · 0.85

Tested by

no test coverage detected