{"id":26260479,"url":"https://github.com/etaaa/go-webhooks","last_synced_at":"2025-07-02T03:03:41.411Z","repository":{"id":57621987,"uuid":"393802614","full_name":"etaaa/go-webhooks","owner":"etaaa","description":"An easy to use Golang package to quickly send Discord webhooks","archived":false,"fork":false,"pushed_at":"2022-12-04T16:28:19.000Z","size":19,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-13T23:14:58.348Z","etag":null,"topics":["discord","discord-webhook","go","golang","webhook","webhooks"],"latest_commit_sha":null,"homepage":"","language":"Go","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/etaaa.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":"2021-08-07T22:07:03.000Z","updated_at":"2024-09-02T10:42:20.000Z","dependencies_parsed_at":"2023-01-23T01:16:46.888Z","dependency_job_id":null,"html_url":"https://github.com/etaaa/go-webhooks","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/etaaa/go-webhooks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etaaa%2Fgo-webhooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etaaa%2Fgo-webhooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etaaa%2Fgo-webhooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etaaa%2Fgo-webhooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/etaaa","download_url":"https://codeload.github.com/etaaa/go-webhooks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etaaa%2Fgo-webhooks/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263066557,"owners_count":23408387,"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-webhook","go","golang","webhook","webhooks"],"created_at":"2025-03-13T23:15:02.749Z","updated_at":"2025-07-02T03:03:41.381Z","avatar_url":"https://github.com/etaaa.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-webhooks\n\nAn easy to use Golang package to quickly send Discord webhooks (https://discord.com/developers/docs/resources/webhook).\n\n## Usage\n\nInstall:\n```bash\ngo get github.com/etaaa/go-webhooks\n```\n\nUsage:\n```go\npackage main\n\nimport (\n\t\"log\"\n\twh \"github.com/etaaa/go-webhooks\"\n)\n\nfunc main() {\n\t// Create a new webhook object. Most fields are optional\n\twebhook := wh.Webhook{\n\t\tContent:   \"This is the webhook's content - up to 2000 characters long.\",\n\t\tUsername:  \"go-webhooks\",\n\t\tAvatarUrl: \"https://golang.org/lib/godoc/images/footer-gopher.jpg\",\n\t\tEmbeds: []wh.Embed{\n\t\t\t{\n\t\t\t\tTitle:       \"Embed Title with URL\",\n\t\t\t\tDescription: \"This is the embed's description\",\n\t\t\t\tUrl:         \"https://github.com/etaaa/go-webhooks\",\n\t\t\t\tTimestamp:   wh.GetTimestamp(),      // Returns a new timestamp matching Discords format\n\t\t\t\tColor:       wh.GetColor(\"#00ff00\"), // Returns the color in decimal value matching Discords format\n\t\t\t\tFooter: wh.EmbedFooter{\n\t\t\t\t\tText: \"Sent via github.com/etaaa/go-webhooks\",\n\t\t\t\t},\n\t\t\t\tThumbnail: wh.EmbedThumbnail{\n\t\t\t\t\tUrl: \"https://upload.wikimedia.org/wikipedia/commons/thumb/0/05/Go_Logo_Blue.svg/1200px-Go_Logo_Blue.svg.png\",\n\t\t\t\t},\n\t\t\t\tAuthor: wh.EmbedAuthor{\n\t\t\t\t\tName:    \"eta\",\n\t\t\t\t\tUrl:     \"https://github.com/etaaa\",\n\t\t\t\t\tIconUrl: \"https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png\",\n\t\t\t\t},\n\t\t\t\tFields: []wh.EmbedFields{\n\t\t\t\t\t{\n\t\t\t\t\t\tName:  \"Field 1\",\n\t\t\t\t\t\tValue: \"Text here\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t}\n\t// Send the webhook\n\tif err := wh.SendWebhook(\"https://discord.com/api/webhooks/.../...\", webhook, true); err != nil {\n\t\tlog.Fatal(err)\n\t}\n}\n```\n\n## Questions\nFor any questions feel free to add and DM me on Discord (eta#1656).\n\n## Contributing\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate.\n\n## License\n[MIT](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fetaaa%2Fgo-webhooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fetaaa%2Fgo-webhooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fetaaa%2Fgo-webhooks/lists"}