Socket
Socket
Sign inDemoInstall

discord-webhook-wrapper

Package Overview
Dependencies
27
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    discord-webhook-wrapper

A very simple wrapper for creating a discord.js `WebhookClient` object


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

discord-webhook-wrapper

A very simple wrapper for creating a discord.js WebhookClient object

Install

npm install discord-webhook-wrapper

Usage

import discordWebhookWrapper from 'discord-webhook-wrapper';

const webhookClient = discordWebhookWrapper({discordWebhookUrl: 'https://discord.com/api/webhooks/1337/example-token'});
// ...

const webhookClientUsingIdAndToken = discordWebhookWrapper({discordWebhookId: '1337', discordWebhookToken: 'example-token'});
// ...

API

discordWebhookWrapper(webhookConfig)

Creates a discord.js WebhookClient object from either a Discord Webhook URL or from both a Discord Webhook ID and a token.

webhookConfig
discordWebhookUrl?

Type: string

URL to the Discord Webhook containing both the ID and the token.

discordWebhookId?

Type: string

ID to the Discord Webhook. Needs to be used together with the token.

discordWebhookToken?

Type: string

Token to the Discord Webhook. Needs to be used together with the ID.

Keywords

FAQs

Last updated on 21 Jan 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc