DM

Discord Message

This actor sends a message to Discord automatically. It can be used separately, or as a notification tool at the end of other actors.

This actor sends message to Discord automatically. It can be used separately, or as a notification tool at the end of other actors.

Discord Webhook setup

It is necessary to create a webhooks through the Discord server settings.You can create webhooks directly through the Discord client. Go to Server Settings, and you will see an Integrations tab.

Create discord webhook

If you already have created a webhook, the webhooks tab will look like this; you will need to click the View Webhooks button.

View discord webhook

Once you are there, click on the Create Webhook / New Webhook button; this will create a webhook. From here, you can edit the channel, the name, and the avatar. Copy the link, the first part is the id, and the second is the token.

View discord webhook

Copy your webhook URL and save it for later.

Ref: Discord webhook

Input

The following table shows specification of the actor INPUT fields as defined by its input schema.

FieldTypeDescription
UrlString(required) Discord Webhook URL
MessageString(required) Message that will be sent to Discord (i.e. "Hello from 'Discord-Message' Apify actor!" ).

How to run

To run the actor, you'll need an聽Apify account. Simply create a new task for the actor by clicking the green button above, modify the actor input configuration, click聽Run聽and get your results.

API

To run the actor from your code, send a HTTP POST request to the following API endpoint: TODO

CU usage

Approximately 0.001 CU per run.

Documentation reference