EvotecIT / PSDiscord

Simple PowerShell module allowing to send messages to Discord Channel over webhooks
47 stars 7 forks source link

Error send if you don't post at least 2 "facts" #1

Closed soupist closed 5 years ago

soupist commented 5 years ago

Everything is working as expected, other than it requires 2 "$Fact" to be sent. You can use the same fact, but if I don't send 2, it errors out.

PrzemyslawKlys commented 5 years ago
Install-Module PSDiscord -Force

Please run this. It should work. Discord REST requires Array of Hashtables and if there's one element there's no array. I had to force Array creation.