{"id":15203003,"url":"https://github.com/propeus/psc-discord-webhook","last_synced_at":"2026-03-09T15:05:55.207Z","repository":{"id":55587525,"uuid":"287740319","full_name":"Propeus/psc-discord-webhook","owner":"Propeus","description":"Um simples projeto para enviar mensagens para o discord usando o powershell","archived":false,"fork":false,"pushed_at":"2020-12-20T11:56:17.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-15T22:42:43.858Z","etag":null,"topics":["discord","discord-webhooks","powershell","powershell-core"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Propeus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-15T12:15:04.000Z","updated_at":"2020-12-20T11:56:19.000Z","dependencies_parsed_at":"2022-08-15T03:50:12.364Z","dependency_job_id":null,"html_url":"https://github.com/Propeus/psc-discord-webhook","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Propeus%2Fpsc-discord-webhook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Propeus%2Fpsc-discord-webhook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Propeus%2Fpsc-discord-webhook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Propeus%2Fpsc-discord-webhook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Propeus","download_url":"https://codeload.github.com/Propeus/psc-discord-webhook/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242005178,"owners_count":20056424,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["discord","discord-webhooks","powershell","powershell-core"],"created_at":"2024-09-28T04:21:43.152Z","updated_at":"2026-03-09T15:05:54.978Z","avatar_url":"https://github.com/Propeus.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Descrição\nEste projeto tem como objetivo facilitar o envio mensagens para o discord usando o Powershell.\n\n## Sumario\n* [Discord-Metadata](https://github.com/Propeus/psc-discord-webhook/wiki/Discord-Metadata)\n* [Discord-Message](https://github.com/Propeus/psc-discord-webhook/wiki/Discord-Message)\n* [Discord-Embed](https://github.com/Propeus/psc-discord-webhook/wiki/Discord-Embed)\n* [Discord-Embed-Autor](https://github.com/Propeus/psc-discord-webhook/wiki/Discord-Embed-Autor)\n* [Discord-Embed-Field](https://github.com/Propeus/psc-discord-webhook/wiki/Discord-Embed-Field)\n* [Discord-Embed-Footer](https://github.com/Propeus/psc-discord-webhook/wiki/Discord-Embed-Footer)\n* [Discord-Embed-Image](https://github.com/Propeus/psc-discord-webhook/wiki/Discord-Embed-Image)\n* [Discord-Embed-Thumbnail](https://github.com/Propeus/psc-discord-webhook/wiki/Discord-Embed-Thumbnail)\n\n## Exemplos\n\n### cmdlet\nInstanciar e enviar mensagem simples\n```powershell\nImport-Module \"psc-discord-webhook.psd1\" -Force -Global\n$metadata = New-DiscordMetadata -url_webhook $wh\n$message= $metadata.GoMessage();\n$message= $message.SetTitle(\"Titulo da mensagem\")\n$message= $message.SetContent(\"Conteudo da mensagem\")\n$metadata.SendMessage();\n```\n\nInstanciar e enviar mensagem embed\n```powershell\nImport-Module \"psc-discord-webhook.psd1\" -Force -Global\n$metadata = New-DiscordMetadata -url_webhook $wh\n$message= $metadata.GoMessage();\n$message= $message.SetUsername(\"Titulo da mensagem\")\n$embed= $message.GoNewEmbed();\n$embed= $embed.SetTitle(\"Titulo do embed com link\")\n$embed= $embed.SetDescription(\"Descrição do embed\")\n$embed= $embed.SetUrl(\"https://github.com/Propeus/psc-discord-webhook/\")\n$embed= $embed.SetColorName(\"Yellow\");\n$embed= $embed.SetAutor(\"Nome do autor com link e icone\",\"https://github.com/Propeus/\",\"https://img2.gratispng.com/20180824/jtl/kisspng-computer-icons-logo-portable-network-graphics-clip-icons-for-free-iconza-circle-social-5b7fe46b0bac53.1999041115351082030478.jpg\");\n$embed= $embed.SetImage(\"https://img2.gratispng.com/20180824/jtl/kisspng-computer-icons-logo-portable-network-graphics-clip-icons-for-free-iconza-circle-social-5b7fe46b0bac53.1999041115351082030478.jpg\")\n$embed= $embed.SetThumbnail(\"https://img2.gratispng.com/20180824/jtl/kisspng-computer-icons-logo-portable-network-graphics-clip-icons-for-free-iconza-circle-social-5b7fe46b0bac53.1999041115351082030478.jpg\");\n$embed= $embed.SetFooter(\"Texto do footer com icone\",\"https://img2.gratispng.com/20180824/jtl/kisspng-computer-icons-logo-portable-network-graphics-clip-icons-for-free-iconza-circle-social-5b7fe46b0bac53.1999041115351082030478.jpg\")\n$embed= $embed.SetTimestampNow();\n$embed= $embed.AddField(\"Versao\",\"1.0\");\n$embed= $embed.AddField(\"Liguagem\",\"Powershell\",$True);\n$embed= $embed.AddField(\"Edição do PS\",\"Core\",$True);\n$metadata.SendMessage();\n```\n\nInstanciar e enviar mensagem embed (Envia varias mensagens exibindo cada propriedade)\n```powershell\nImport-Module \"psc-discord-webhook.psd1\" -Force -Global\n$metadata = New-DiscordMetadata -url_webhook $wh\n$message= $metadata.GoMessage();\n$message= $message.SetUsername(\"Titulo da mensagem\")\n$embed= $message.GoNewEmbed();\n$embed= $embed.SetTitle(\"Titulo do embed com link\")\n$metadata.SendMessage();\n$embed= $embed.SetDescription(\"Descrição do embed\")\n$metadata.SendMessage();\n$embed= $embed.SetUrl(\"https://github.com/Propeus/psc-discord-webhook/\")\n$metadata.SendMessage();\n$embed= $embed.SetColorName(\"Yellow\");\n$metadata.SendMessage();\n$embed= $embed.SetAutor(\"Nome do autor\");\n$metadata.SendMessage();\n$embed= $embed.SetAutor(\"Nome do autor com link\",\"https://github.com/Propeus/\");\n$metadata.SendMessage();\n$embed= $embed.SetAutor(\"Nome do autor com link\",\"https://github.com/Propeus/\",\"https://img2.gratispng.com/20180824/jtl/kisspng-computer-icons-logo-portable-network-graphics-clip-icons-for-free-iconza-circle-social-5b7fe46b0bac53.1999041115351082030478.jpg\");\n$metadata.SendMessage();\n$embed= $embed.SetImage(\"https://img2.gratispng.com/20180824/jtl/kisspng-computer-icons-logo-portable-network-graphics-clip-icons-for-free-iconza-circle-social-5b7fe46b0bac53.1999041115351082030478.jpg\")\n$metadata.SendMessage();\n$embed= $embed.SetThumbnail(\"https://img2.gratispng.com/20180824/jtl/kisspng-computer-icons-logo-portable-network-graphics-clip-icons-for-free-iconza-circle-social-5b7fe46b0bac53.1999041115351082030478.jpg\");\n$metadata.SendMessage();\n$embed= $embed.SetFooter(\"Texto do footer\")\n$metadata.SendMessage();\n$embed= $embed.SetFooter(\"Texto do footer com icone\",\"https://img2.gratispng.com/20180824/jtl/kisspng-computer-icons-logo-portable-network-graphics-clip-icons-for-free-iconza-circle-social-5b7fe46b0bac53.1999041115351082030478.jpg\")\n$metadata.SendMessage();\n$embed= $embed.SetTimestampNow();\n$metadata.SendMessage();\n$embed= $embed.AddField(\"Versao\",\"1.0\");\n$metadata.SendMessage();\n$embed= $embed.AddField(\"Liguagem\",\"Powershell\",$True);\n$embed= $embed.AddField(\"Edição do PS\",\"Core\",$True);\n$metadata.SendMessage();\n```\n\nInstanciar e enviar mensagem embed concatenado as funções\n```powershell\nImport-Module \"psc-discord-webhook.psd1\" -Force -Global\n$metadata = New-DiscordMetadata -url_webhook $wh\n$message= $metadata.GoMessage().SetUsername(\"Titulo da mensagem\")\n$embed= $message.GoNewEmbed().SetTitle(\"Titulo do embed com link\").SetDescription(\"Descrição do embed\").SetUrl(\"https://github.com/Propeus/psc-discord-webhook/\").SetColorName(\"Yellow\").SetAutor(\"Nome do autor com link e icone\",\"https://github.com/Propeus/\",\"https://img2.gratispng.com/20180824/jtl/kisspng-computer-icons-logo-portable-network-graphics-clip-icons-for-free-iconza-circle-social-5b7fe46b0bac53.1999041115351082030478.jpg\").SetImage(\"https://img2.gratispng.com/20180824/jtl/kisspng-computer-icons-logo-portable-network-graphics-clip-icons-for-free-iconza-circle-social-5b7fe46b0bac53.1999041115351082030478.jpg\").SetThumbnail(\"https://img2.gratispng.com/20180824/jtl/kisspng-computer-icons-logo-portable-network-graphics-clip-icons-for-free-iconza-circle-social-5b7fe46b0bac53.1999041115351082030478.jpg\").SetFooter(\"Texto do footer com icone\",\"https://img2.gratispng.com/20180824/jtl/kisspng-computer-icons-logo-portable-network-graphics-clip-icons-for-free-iconza-circle-social-5b7fe46b0bac53.1999041115351082030478.jpg\").SetTimestampNow().AddField(\"Versao\",\"1.0\").AddField(\"Liguagem\",\"Powershell\",$True).AddField(\"Edição do PS\",\"Core\",$True);\n$metadata.SendMessage();\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpropeus%2Fpsc-discord-webhook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpropeus%2Fpsc-discord-webhook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpropeus%2Fpsc-discord-webhook/lists"}