# Send a fact section

Send a fact section 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 richer webhook message with facts.

This pattern is useful when a notification should include structured context instead of a single text line.

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

## When to use this pattern

- You want a compact environment summary in the message.
- The output should be easier to scan in Discord.
- The message should be built from reusable section and fact helpers.

## Example

```powershell
Import-Module PSDiscord

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

$facts = @(
    New-DiscordFact -Name '**PS Version**' -Value "$($PSVersionTable.PSVersion)" -Inline $true
    New-DiscordFact -Name '**PS Edition**' -Value "$($PSVersionTable.PSEdition)" -Inline $true
    New-DiscordFact -Name '**Computer Name**' -Value "$($env:COMPUTERNAME)" -Inline $true
)

$section = New-DiscordSection -Title 'Automation status' -Description 'Environment summary' -Facts $facts -Color BlueViolet

Send-DiscordMessage -WebHookUrl $webhookUrl -Sections $section -AvatarName 'Automation'
```

## What this demonstrates

- building embed-style sections
- adding inline facts
- sending a richer webhook payload

## Source

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

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