{"id":24496867,"url":"https://github.com/10mohi6/discord-webhook-python","last_synced_at":"2025-04-14T04:14:42.842Z","repository":{"id":45403655,"uuid":"256383010","full_name":"10mohi6/discord-webhook-python","owner":"10mohi6","description":"discordwebhook is a python library for discord webhook with discord rest api on Python 3.6 and above.","archived":false,"fork":false,"pushed_at":"2023-05-23T02:04:48.000Z","size":1818,"stargazers_count":17,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T04:14:20.812Z","etag":null,"topics":["api","discord","python","webhook"],"latest_commit_sha":null,"homepage":"","language":"Python","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/10mohi6.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2020-04-17T02:39:31.000Z","updated_at":"2025-03-07T15:29:09.000Z","dependencies_parsed_at":"2024-06-21T14:18:18.057Z","dependency_job_id":"c67bddaa-1d58-482a-aa01-43a944a784ba","html_url":"https://github.com/10mohi6/discord-webhook-python","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"d7df237fdcbe61043d5e2ea3a3f9e75fc454a8b4"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10mohi6%2Fdiscord-webhook-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10mohi6%2Fdiscord-webhook-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10mohi6%2Fdiscord-webhook-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10mohi6%2Fdiscord-webhook-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/10mohi6","download_url":"https://codeload.github.com/10mohi6/discord-webhook-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248819408,"owners_count":21166477,"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":["api","discord","python","webhook"],"created_at":"2025-01-21T21:19:12.269Z","updated_at":"2025-04-14T04:14:42.824Z","avatar_url":"https://github.com/10mohi6.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# discordwebhook\n\n[![PyPI](https://img.shields.io/pypi/v/discordwebhook)](https://pypi.org/project/discordwebhook/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![codecov](https://codecov.io/gh/10mohi6/discord-webhook-python/branch/master/graph/badge.svg)](https://codecov.io/gh/10mohi6/discord-webhook-python)\n[![Build Status](https://travis-ci.com/10mohi6/discord-webhook-python.svg?branch=master)](https://travis-ci.com/10mohi6/discord-webhook-python)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/discordwebhook)](https://pypi.org/project/discordwebhook/)\n[![Downloads](https://pepy.tech/badge/discordwebhook)](https://pepy.tech/project/discordwebhook)\n\ndiscordwebhook is a python library for discord webhook with discord rest api on Python 3.6 and above.\n\n\n## Installation\n\n    $ pip install discordwebhook\n\n## Usage\n\n### basic\n```python\nfrom discordwebhook import Discord\n\ndiscord = Discord(url=\"\u003cyour webhook url\u003e\")\ndiscord.post(content=\"Hello, world.\")\n```\n![basic.png](https://raw.githubusercontent.com/10mohi6/discord-webhook-python/master/tests/basic.png)\n\n### basic, username and avatar_url\n```python\nfrom discordwebhook import Discord\n\ndiscord = Discord(url=\"\u003cyour webhook url\u003e\")\ndiscord.post(\n    content=\"Hello, world.\",\n    username=\"10mohi6\",\n    avatar_url=\"https://avatars2.githubusercontent.com/u/38859131?s=460\u0026amp;v=4\"\n)\n```\n![basic-username.png](https://raw.githubusercontent.com/10mohi6/discord-webhook-python/master/tests/basic-username.png)\n\n### basic embed\n```python\nfrom discordwebhook import Discord\n\ndiscord = Discord(url=\"\u003cyour webhook url\u003e\")\ndiscord.post(\n    embeds=[{\"title\": \"Embed Title\", \"description\": \"Embed description\"}],\n)\n```\n![basic-embed.png](https://raw.githubusercontent.com/10mohi6/discord-webhook-python/master/tests/basic-embed.png)\n\n### advanced embed\n```python\nfrom discordwebhook import Discord\n\ndiscord = Discord(url=\"\u003cyour webhook url\u003e\")\ndiscord.post(\n    embeds=[\n        {\n            \"author\": {\n                \"name\": \"Embed Name\",\n                \"url\": \"https://github.com/10mohi6/discord-webhook-python\",\n                \"icon_url\": \"https://picsum.photos/24/24\",\n            },\n            \"title\": \"Embed Title\",\n            \"description\": \"Embed description\",\n            \"fields\": [\n                {\"name\": \"Field Name 1\", \"value\": \"Value 1\", \"inline\": True},\n                {\"name\": \"Field Name 2\", \"value\": \"Value 2\", \"inline\": True},\n                {\"name\": \"Field Name 3\", \"value\": \"Field Value 3\"},\n            ],\n            \"thumbnail\": {\"url\": \"https://picsum.photos/80/60\"},\n            \"image\": {\"url\": \"https://picsum.photos/400/300\"},\n            \"footer\": {\n                \"text\": \"Embed Footer\",\n                \"icon_url\": \"https://picsum.photos/20/20\",\n            },\n        }\n    ],\n)\n```\n![advanced-embed.png](https://raw.githubusercontent.com/10mohi6/discord-webhook-python/master/tests/advanced-embed.png)\n\n### send file\n```python\nfrom discordwebhook import Discord\n\ndiscord = Discord(url=\"\u003cyour webhook url\u003e\")\ndiscord.post(\n    file={\n        \"file1\": open(\"tests/file1.jpg\", \"rb\"),\n        \"file2\": open(\"tests/file2.jpg\", \"rb\"),\n    },\n)\n```\n![send-file.png](https://raw.githubusercontent.com/10mohi6/discord-webhook-python/master/tests/send-file.png)\n\n\n## Getting started\n\nFor help getting started with discord webhook, view our online [documentation](https://discordapp.com/developers/docs/resources/webhook).\n\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F10mohi6%2Fdiscord-webhook-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F10mohi6%2Fdiscord-webhook-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F10mohi6%2Fdiscord-webhook-python/lists"}