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

Function getWebhook

components/runtime/src/ts/discord/dapi.ts:1161–1171  ·  view source on GitHub ↗
(id: string, token?: string)

Source from the content-addressed store, hash-verified

1159}
1160
1161export async function getWebhook(id: string, token?: string) {
1162 let resp = await OpWrappers.callAsyncOp({
1163 kind: "discord_webhook_get",
1164 arg: {
1165 webhook_id: id,
1166 token: token ?? null,
1167 },
1168 })
1169
1170 return Webhook.fromInternal(resp)
1171}
1172
1173export async function getGuildWebhooks() {
1174 let resp = await OpWrappers.callAsyncOp({

Callers

nothing calls this directly

Calls 1

fromInternalMethod · 0.45

Tested by

no test coverage detected