async function editWebhook(
  channelId,
  webhookId,
  options,
) {
  await requireBotChannelPermissions(channelId, [
    "MANAGE_WEBHOOKS",
  ]);
  return await rest.runMethod("patch", endpoints.WEBHOOK_ID(webhookId), {
    ...options,
    channel_id: options.channelId,
  });
}
/** Edit a webhook. Requires the `MANAGE_WEBHOOKS` permission. Returns the updated webhook object on success. */
Edit a webhook. Requires the `MANAGE_WEBHOOKS` permission. Returns the updated webhook object on success.
Edit a webhook . Requires the ` MANAGE_WEBHOOKS ` permission . Returns the updated webhook object on success .
async function editWebhook(
  channelId,
  webhookId,
  options,
) {
  await requireBotChannelPermissions(channelId, [
    "MANAGE_WEBHOOKS",
  ]);
  return await rest.runMethod("patch", endpoints.WEBHOOK_ID(webhookId), {
    ...options,
    channel_id: options.channelId,
  });
}
async function editWebhook ( channelId , webhookId , options , ) { await requireBotChannelPermissions ( channelId , [ "MANAGE_WEBHOOKS" , ] ) ; return await rest . runMethod ( "patch" , endpoints . WEBHOOK_ID ( webhookId ) , { ... options , channel_id : options . channelId , } ) ; }
Edit a webhook.
Edit a webhook .