# Send a basic message

Send a basic message on Evotec with practical examples, usage guidance, and reusable project workflows.

Project

PSDiscord

Simple PowerShell module allowing to send messages to Discord Channel over webhooks

[View on GitHub](https://github.com/EvotecIT/PSDiscord) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSDiscord/releases/tag/v0.2.4) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSDiscord)

Stars**51**

Forks**7**

Open issues**2**

PowerShell Gallery downloads**175229**

Release**v0.2.4**

Language: PowerShell Updated: 2026-02-14

Curated Examples

Use PSDiscord to send a short Discord webhook notification.

This pattern is useful when a script needs to announce a start, finish, or failure state.

It is adapted from the source example at `Examples/Example - 1.ps1`.

## When to use this pattern

- You need a lightweight webhook notification.
- The webhook URL is supplied by configuration or a secret store.
- The message can be plain text.

## Example

```powershell
Import-Module PSDiscord

$webhookUrl = Get-Content -LiteralPath "$PSScriptRoot\discord-webhook.txt" -Raw

Send-DiscordMessage `
    -WebHookUrl $webhookUrl `
    -Text 'Nightly checks started.' `
    -AvatarName 'Automation'
```

## What this demonstrates

- sending a plain Discord message
- keeping the webhook URL outside the script
- setting a readable sender name

## Source

- [Example - 1.ps1](https://github.com/EvotecIT/PSDiscord/blob/master/Examples/Example%20-%201.ps1)

<!-- PowerForge markdown artifact sha256:A1DC1A2DDA28302ADA22E9B38B00508ED2518D0C24E4EB5345E9C5A24CE39EAE -->
