Nodes
Send Discord Message#
The Send Discord Message node allows you to send a message to a specified channel in Discord from your Magick spell. This is useful for sending notifications, alerts, or any other information from your spell to a Discord server.
Inputs#
flow
(required): The flow from the previous node in the spell.content
(required): The text content of the message to send to Discord. This can include plain text, emoji, and basic markdown formatting.channel
(required): The ID of the Discord channel to send the message to. This should be a string in the formatCHANNEL_ID
.
Outputs#
flow
: The flow continues to the next node in the spell after the message is sent.
Configuration#
This node does not have any additional configuration options.
Usage#
- Add the Send Discord Message node to your spell.
- Connect the
flow
input to the output of the previous node in your spell. - Set the
content
input to the text you want to include in your Discord message. You can include emoji and basic markdown formatting. - Set the
channel
input to the ID of the Discord channel where you want to send the message. You can find the channel ID by right-clicking the channel in Discord and selecting "Copy ID". - Connect the
flow
output to the next node in your spell, if applicable.
Example#
Here's an example of how to use the Send Discord Message node in a spell:
- Use a Trigger node to start the spell, such as a Schedule trigger to run the spell daily.
- Use a HTTP Request node to fetch some data from an API.
- Use a Transform Data node to extract the relevant information from the API response.
- Use the Send Discord Message node to send a summary of the extracted data to a Discord channel.
- Set
content
to a string that includes the summary information, e.g. "Daily update: There were 25 new signups today!" - Set
channel
to the ID of your "daily-updates" Discord channel.
- Set
- Use a Debug node to log a message indicating the spell ran successfully.
Best Practices#
- Be mindful of the content you send to public Discord channels. Avoid sending sensitive information.
- Use clear and concise language in your messages to make them easy for your audience to understand.
- Take advantage of Discord's formatting options to make your messages more readable and visually appealing.
- If sending messages to a busy channel, consider using Discord threads to keep conversations organized.
Troubleshooting#
- Make sure you have the correct channel ID specified in the
channel
input. An incorrect ID will cause the message to fail to send. - Check that your Magick app has the necessary permissions in your Discord server to send messages to the specified channel.
- If your message content includes special characters, make sure they are properly escaped to avoid formatting issues.