Basic Webhook
- If you have not already configured a Webhook for your Discord server, check out the Discord configuration guide to learn how.
Username, content, and image can contain variables and will be parsed. Username, and image are also optional
Parameters
Webhook Name
Enter a name for your webhook
- Variables are not supported
Username
Set a custom username for the author of the resulting Discord message
- Optional
- By default, Discord will use the name configured in the webhook settings
Webhook URL
Enter the Webhook URL copied from the Discord webhook configuration
- Variables are not supported
Content
Enter the text content for your Webhook message
- You can use Ctrl+Enter for multiple lines
If you would like to ping users or roles, click here to learn more!
Avatar URL
Set a custom avatar for the author of the resulting Discord message
- Optional
- By default, Discord will use the avatar configured in the webhook settings
Here you can optionally fill out a URL to temporarily change the avatar of the webhook to something to your choose, an example use case for this is adding a Chat Message event and using the user's profile image in this field with the Get User Info for Target Sub-Action and then using the %targetUserProfileImageUrl%
variable.
Image
Add an image embed to the Webhook message
- Optional
Text to Speech
Toggle to send the message with Discord TTS
C# Usage
public bool DiscordPostTextToWebhook(string webhookUrl, string content, string username, string avatarUrl, bool textToSpeech = false)