NN.Notifications.psm1

#Region './Public/Send-DiscordMessage.ps1' 0
function Send-DiscordMessage {
    param (
        [Parameter(Mandatory)][string]$Message,
        [Parameter(Mandatory)][string]$Uri
    )

    $Splat = @{
        "Uri" = $Uri 
        "Method" = "POST"
        "ContentType" = "Application/Json"
        "Body" = @{
            "content" = $Message
        } | ConvertTo-Json
    }
    Invoke-RestMethod @Splat
}
#EndRegion './Public/Send-DiscordMessage.ps1' 17
#Region './Public/Send-TeamsMessage.ps1' 0
function Send-TeamsMessage {
    param (
        [Parameter(Mandatory)]$Message,
        [Parameter(Mandatory)]$Uri
    )

    $Splat = @{
        "Uri" = $hookUri
        "Method" = "POST"
        "ContentType" = "Application/Json"
        "Body" = @{
            "text" = $message
        } | ConvertTo-Json
    }
    Invoke-RestMethod @Splat
}
#EndRegion './Public/Send-TeamsMessage.ps1' 17