{"id":23400059,"url":"https://github.com/bennyscripts/easy-discord-webhooks","last_synced_at":"2025-04-08T19:54:12.877Z","repository":{"id":57425049,"uuid":"427995096","full_name":"bennyscripts/easy-discord-webhooks","owner":"bennyscripts","description":"An easy and simplistic way to execute and modify a Discord webhook all from Python.","archived":false,"fork":false,"pushed_at":"2021-11-23T11:15:23.000Z","size":14,"stargazers_count":0,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-10T05:06:06.921Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/bennyscripts.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-11-14T17:30:32.000Z","updated_at":"2021-11-14T18:05:59.000Z","dependencies_parsed_at":"2022-09-19T05:20:53.908Z","dependency_job_id":null,"html_url":"https://github.com/bennyscripts/easy-discord-webhooks","commit_stats":null,"previous_names":["bennyscripts/easy-discord-webhooks","bentettmar/easy-discord-webhooks"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bennyscripts%2Feasy-discord-webhooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bennyscripts%2Feasy-discord-webhooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bennyscripts%2Feasy-discord-webhooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bennyscripts%2Feasy-discord-webhooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bennyscripts","download_url":"https://codeload.github.com/bennyscripts/easy-discord-webhooks/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247918939,"owners_count":21018043,"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":[],"created_at":"2024-12-22T10:18:48.656Z","updated_at":"2025-04-08T19:54:12.849Z","avatar_url":"https://github.com/bennyscripts.png","language":"Python","readme":"# easy-discord-webhooks\nAn easy and simplistic way to execute and modify a Discord webhook all from Python.  \n\n### Install\n```\npip install easy-discord-webhooks\n```\n\n### Examples\n  \nSending `hello world` to a webhook.\n```python\nimport easy_discord_webhooks as DiscordWebhooks # Import easy-discord-webhooks as something easy to refer back to.\n\nwebhookUrl = \"WEBHOOK_URL_HERE\"\nwebhook = DiscordWebhooks.Webhook(webhookUrl) # Create a new webhook object with your webhook URL.\n\nwebhook.send(\"Hello World\") # Send a hello world to the webhook using the objects send function.\n```\n  \n\u003cbr /\u003e\n  \nSending a basic embed to a webhook.\n```python\nimport easy_discord_webhooks as DiscordWebhooks # Import easy-discord-webhooks as something easy to refer back to.\n\nwebhookUrl = \"WEBHOOK_URL_HERE\"\nwebhook = DiscordWebhooks.Webhook(webhookUrl) # Create a new webhook object with your webhook URL.\n\nembed = DiscordWebhooks.Embed( # Create an embed object.\n  title=\"Embed Title\", # Set the title\n  description=\"Embed description...\", # Set the description\n  color=\"#ff0000\" # Set the color (must be a hex value)\n)\n\nwebhook.send(\"Hello World\", embed=embed) # Send a hello world + the embed to the webhook using the objects send function.\n```\n  \n\u003cbr /\u003e\n  \nSending an advanced embed with fields and images to a webhook.\n```python\nimport easy_discord_webhooks as DiscordWebhooks # Import easy-discord-webhooks as something easy to refer back to.\n\nwebhookUrl = \"WEBHOOK_URL_HERE\"\nwebhook = DiscordWebhooks.Webhook(webhookUrl) # Create a new webhook object with your webhook URL.\n\nembed = DiscordWebhooks.Embed( # Create an embed object.\n  title=\"Embed Title\", # Set the title\n  description=\"Embed description...\", # Set the description\n  color=\"#ff0000\" # Set the color (must be a hex value)\n)\n\n# Add fields using add_field function\nembed.add_field(name=\"Field 1\", value=\"Field 1 value.\") \nembed.add_field(name=\"Field 2\", value=\"Field 2 value.\")\nembed.add_field(name=\"Field 3\", value=\"Field 3 value.\")\n\n# Set an image with set_image\nembed.set_image(url=\"https://discord.com/assets/ff41b628a47ef3141164bfedb04fb220.png\")\n\n# Set a thumbnail image with set_thumbnail\nembed.set_thumbnail(url=\"https://discord.com/assets/f9bb9c4af2b9c32a2c5ee0014661546d.png\")\n\nwebhook.send(\"Hello World\", embed=embed) # Send a hello world + the embed to the webhook using the objects send function.\n```\n  \n\u003cbr /\u003e\n  \nGather info about a webhook.\n```python\nimport easy_discord_webhooks as DiscordWebhooks # Import easy-discord-webhooks as something easy to refer back to.\n\nwebhookUrl = \"WEBHOOK_URL_HERE\"\nwebhook = DiscordWebhooks.Webhook(webhookUrl) # Create a new webhook object with your webhook URL.\n\n# get some information from the webhook\nusername = webhook.name\nid = webhook.id\navatar = webhook.avatar\ntoken = webhook.token\n\n# other variables that could come in handy\nguildId = webhook.guildId\nchannelId = webhook.channelId\napplicationId = webhook.applicationId\ntype = webhook.type\n\n# print the information we got from the webhook\nprint(\"Webhook name:\", username)\nprint(\"Webhook id:\", id)\nprint(\"Webhook token:\", token)\nprint(\"Webhook avatar:\", avatar)\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbennyscripts%2Feasy-discord-webhooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbennyscripts%2Feasy-discord-webhooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbennyscripts%2Feasy-discord-webhooks/lists"}