PSDiscord is a PowerShell Module working on Windows / Linux and Mac. It allows to send notifications to Discord. It's pretty flexible and provides of easy to use cmdlets.
For description and advanced usage visit PSDiscord dedicated page.
- 0.2.4 / 2021.06.06
- Replaced [RGBColors] with [string] and defined 800+ colors in New-DiscordSection
- 0.2.3 / 2021.06.01
- Supports UTF8 chars/emoji
- 0.0.6 / 2019.01.01
- small improvements
- 0.0.5 / 2018.12.30
- first release
Install-Module PSDiscord
#Install-Module PSPSDiscord -Scope CurrentUser
Update-Module PSDiscord
$Uri = 'https://discordapp.com/api/webhooks/5083323013'
$Author = New-DiscordAuthor -Name 'PSBlacklistChecker' -IconUrl "https://raw.githubusercontent.com/EvotecIT/PSDiscord/master/Links/Asset%20130.png"
$Fact = New-DiscordFact -Name 'Blacklisted IP 89.74.48.97' -Value 'Found on blacklist dnsbl.sorbs.net' -Inline $false
$Thumbnail = New-DiscordThumbnail -Url "https://raw.githubusercontent.com/EvotecIT/PSDiscord/master/Links/Asset%20130.png"
$Section = New-DiscordSection -Title 'Everybody panic!' -Description '' -Facts $Fact, $Fact, $Fact -Color BlueViolet -Author $Author -Thumbnail $Thumbnail -Image $Thumbnail
Send-DiscordMessage -WebHookUrl $Uri -Sections $Section -AvatarName 'PSBlackListChecker' -AvatarUrl "https://raw.githubusercontent.com/EvotecIT/PSDiscord/master/Links/Asset%20130.png"