{"id":21001183,"url":"https://github.com/waxdred/webhook_go","last_synced_at":"2026-05-19T11:34:08.696Z","repository":{"id":114960001,"uuid":"609905985","full_name":"waxdred/webhook_go","owner":"waxdred","description":"Library webhook go","archived":false,"fork":false,"pushed_at":"2023-03-05T15:48:24.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-25T04:42:26.960Z","etag":null,"topics":["discord","discord-bot","discord-webhooks","go","golang","library","webhook","webhook-discord"],"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/waxdred.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-05T15:39:10.000Z","updated_at":"2023-07-29T07:13:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"0a301f37-4ce1-4110-a79c-8f060f744f86","html_url":"https://github.com/waxdred/webhook_go","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/waxdred/webhook_go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waxdred%2Fwebhook_go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waxdred%2Fwebhook_go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waxdred%2Fwebhook_go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waxdred%2Fwebhook_go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/waxdred","download_url":"https://codeload.github.com/waxdred/webhook_go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waxdred%2Fwebhook_go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33214362,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-19T07:54:09.561Z","status":"ssl_error","status_checked_at":"2026-05-19T07:54:08.508Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-bot","discord-webhooks","go","golang","library","webhook","webhook-discord"],"created_at":"2024-11-19T08:14:06.209Z","updated_at":"2026-05-19T11:34:08.663Z","avatar_url":"https://github.com/waxdred.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Webhook Go\n![GitHub Workflow Status](https://github.com/waxdred/webhook_go/actions/workflows/go.yml/badge.svg)\n![GoDoc](https://godoc.org/github.com/golang/gddo?status.svg)\n\nWebhook-Go is a Go library for sending webhooks. With this library, you can send messages, and embeds to a using a webhook URL.\n## Table of Contents\n- [Installation](#Installation)\n- [Usage](#Usage)\n- [Exemple](#Exemple)\n- [Message](#Message)\n- [Embed](#Embed)\n\n# Installation\nTo use this library in your Go project, you can install it using go get:\n\n```go\ngo get github.com/waxdred/webhook_go\nimport (\n\twk \"github.com/waxdred/webhook_go\"\n)\n```\n# Usage\n- To use the Discord_webhook_go library, you first need to create a new Webhook object with the webhook URL:\n- You can also send an embed:\n\n## Exemple:\n```go\npackage main\n\nimport (\n   wk \"github.com/waxdred/webhook_go\"\n)\n\nfunc main() {\n   // Create a new WebhookClient with the URL of your webhook\n   client := wk.WebhookClient{}\n   url := \"webhook url\"\n   client.New(url)\n\n   // Call the Send function with a closure that constructs the message and returns it\n   _, err := client.Send(func(m *wk.Message) *wk.Message {\n   // Set the content, username, and avatar URL of the message\n      m.Content(\"Hello, world!\").\n         Username(\"My Bot\").\n     \t AvatarURL(\"https://i.imgur.com/4m34hi2.png\").\n\t // Add an embed to the message\n         Embed(func(embed *wk.Embed) {\n\t // Set the title, author, URL, color, and description of the embed\n         embed.Title(\"My Embed\").\n\t Author(\"waxdred\", \"https://i.imgur.com/4m34hi2.png\", \"https://i.imgur.com/R66g1Pe.jpg\").\n\t Url(\"https://google.com/\").\n\t Color(15258703).\n\t Desc(\"This is an example embed!\").\n\t // Add some fields to the embed\n\t Field(\"Field 1\", \"This is the first field\", false).\n\t Field(\"Field 2\", \"This is the second field\", false).\n\t Field(\"Field 3\", \"This is the third field\", false).\n\t Field(\"Inline Field\", \"This is an inline field\", true).\n\t // Set the thumbnail and image of the embed\n\t Thumbnail(\"https://i.imgur.com/4m34hi2.png\").\n\t Image(\"https://i.imgur.com/4m34hi2.png\").\n\t // Set the footer of the embed\n\t Footer(\"Created by My Bot\", \"\")\n\t })\n      return m\n   })\n   if err != nil {\n      panic(err)\n   }\n}\n```\n\n## Message\n- content_s (string, optional): the content of the message\n- username_s (string, optional): the username that will be shown for the webhook message\n- avatarURL_s (string, optional): the URL of the image that will be shown for the webhook message\n- tts_s (bool, optional): whether the message should be sent as a text-to-speech message\n- embeds_s ([]Embed, optional): an array of Embed objects to include in the message\n- allowMentions_s (Allowed, optional): an object specifying which user mentions are allowed in the message\n## Embed\n- author_s (EmbedAuthor, optional): an object specifying the author of the embed\n- title_s (string, optional): the title of the embed\n- type_s (string, optional): the type of the embed\n- description_s (string, optional): the description of the embed\n- url_s (string, optional): the URL that the title should link to\n- timestamp_s (string, optional): a timestamp to show at the bottom of the embed\n- color_s (int64, optional): the color of the embed\n- fields_s ([]EmbedField, optional): an array of EmbedField objects to include in the embed\n- thumbnail_s (EmbedThumbnail, optional): an object specifying the thumbnail image of the embed\n- image_s (EmbedImage, optional): an object specifying the main image of the embed\n- video_s (EmbedVideo, optional): an object specifying a video to include in the embed\n- footer_s (EmbedFooter, optional): an object specifying the footer of the embed\n- provider_s (EmbedProvider, optional): an object specifying the provider of the embed\n\nFor more examples and detailed usage instructions, please see the GoDoc [documentation](https://pkg.go.dev/github.com/waxdred/webhook_go?utm_source=godoc).\n\nContributing\nIf you find a bug or would like to contribute to this library, please open an issue or pull request on the GitHub repository.\n\nLicense\nThis library is licensed under the MIT License. See the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaxdred%2Fwebhook_go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwaxdred%2Fwebhook_go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaxdred%2Fwebhook_go/lists"}