{"id":23149024,"url":"https://github.com/imjustnozell/discordwebhookapi","last_synced_at":"2026-01-26T01:32:36.938Z","repository":{"id":268523907,"uuid":"888785052","full_name":"imjustnozell/DiscordWebhookAPI","owner":"imjustnozell","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-15T02:14:25.000Z","size":66,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-17T17:43:51.299Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/imjustnozell.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":"2024-11-15T02:08:59.000Z","updated_at":"2024-11-26T01:41:08.000Z","dependencies_parsed_at":"2024-12-24T08:47:03.688Z","dependency_job_id":null,"html_url":"https://github.com/imjustnozell/DiscordWebhookAPI","commit_stats":null,"previous_names":["imjustnozell/discordwebhookapi"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/imjustnozell/DiscordWebhookAPI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imjustnozell%2FDiscordWebhookAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imjustnozell%2FDiscordWebhookAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imjustnozell%2FDiscordWebhookAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imjustnozell%2FDiscordWebhookAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imjustnozell","download_url":"https://codeload.github.com/imjustnozell/DiscordWebhookAPI/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imjustnozell%2FDiscordWebhookAPI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28763938,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T00:37:26.264Z","status":"ssl_error","status_checked_at":"2026-01-26T00:37:25.959Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2024-12-17T17:14:21.750Z","updated_at":"2026-01-26T01:32:36.923Z","avatar_url":"https://github.com/imjustnozell.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"#DiscordWebhookAPI\n\n---\n\n\u003cdiv align=\"center\" style=\"background-color:#ff5555; padding: 20px; border-radius: 10px;\"\u003e\n\n  \u003ch1 style=\"color: white; font-size: 2.5em;\"\u003e🎉 Join the BlockForDevs Discord Community! 🎉\u003c/h1\u003e\n  \u003cp style=\"font-size: 1.8em; font-weight: bold;\"\u003e\n    \u003ca href=\"https://discord.com/invite/NvxR2SCyQY\" style=\"color: #ffffff; text-decoration: none; background-color: #7289da; padding: 10px 20px; border-radius: 5px; border: 2px solid #ffffff;\"\u003e\n      👉 Click Here to Join Now! 👈\n    \u003c/a\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\n---\n\n\u003ch1 align=\"center\"\u003e\n  DiscordWebhookAPI\n  \u003cimg src=\"https://raw.githubusercontent.com/CortexPE/DiscordWebhookAPI/master/dwapi.png\" height=\"64\" width=\"64\" align=\"left\"\u003e\n  \u0026nbsp;\n  \u003cimg src=\"https://poggit.pmmp.io/ci.shield/CortexPE/DiscordWebhookAPI/~\"\u003e\n\u003c/h1\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003cp\u003eA PocketMine-MP Virion to easily send messages via Discord Webhooks\u003c/p\u003e\n  \u003cp\u003eUna Virion para PocketMine-MP para enviar mensajes fácilmente mediante Discord Webhooks\u003c/p\u003e\n\u003c/div\u003e\n\n---\n\n## 🎉 Installation / Instalación\n\nInstallation is easy. You may get a compiled `.phar` [here](https://poggit.pmmp.io/ci/CortexPE/DiscordWebhookAPI/~) or integrate the virion itself into your plugin.  \nLa instalación es fácil. Puedes obtener un `.phar` compilado [aquí](https://poggit.pmmp.io/ci/CortexPE/DiscordWebhookAPI/~) o integrar directamente el virion en tu plugin.\n\nThis virion is purely object-oriented. To use it, you'll need to import the `Webhook`, `Message`, and optionally, the `Embed` object (if needed).  \nEsta API es completamente orientada a objetos. Para usarla, deberás importar los objetos `Webhook`, `Message`, y opcionalmente, `Embed` si es necesario.\n\n---\n\n## 🛠 Basic Usage / Uso básico\n\n### Import the classes / Importar las clases\n\nTo use this API in your code, you'll need to import the following classes:  \nPara usar esta API en tu código, necesitarás importar las siguientes clases:\n\n```php\n\u003c?php\nuse CortexPE\\DiscordWebhookAPI\\Message;\nuse CortexPE\\DiscordWebhookAPI\\Webhook;\nuse CortexPE\\DiscordWebhookAPI\\Embed; // optional / opcional\n```\n\n### Construct a `Webhook` object / Crear un objeto `Webhook`\n\nYou'll need the Webhook URL. For more information on how to create Discord webhooks, [click here](https://support.discordapp.com/hc/en-us/articles/228383668-Intro-to-Webhooks).  \nNecesitarás la URL del Webhook. Para más información sobre cómo crear webhooks en Discord, haz [clic aquí](https://support.discordapp.com/hc/en-us/articles/228383668-Intro-to-Webhooks).\n\n```php\n$webHook = new Webhook(\"YOUR WEBHOOK URL\");\n```\n\n### Construct a `Message` object / Crear un objeto `Message`\n\nYou must create a new `Message` object for each message you want to send.  \nDeberás crear un nuevo objeto `Message` para cada mensaje que desees enviar.\n\n```php\n$msg = new Message();\n$msg-\u003esetUsername(\"USERNAME\"); // optional / opcional\n$msg-\u003esetAvatarURL(\"https://cortexpe.xyz/utils/kitsu.png\"); // optional / opcional\n$msg-\u003esetContent(\"INSERT TEXT HERE\"); // optional. Max length 2000 characters / opcional. Máximo 2000 caracteres\n```\n\n### Send the message / Enviar el mensaje\n\nNow you can send the message using the `send()` method. This will schedule an AsyncTask to avoid blocking the main thread.  \nAhora puedes enviar el mensaje usando el método `send()`. Esto programará una AsyncTask para evitar bloquear el hilo principal.\n\n```php\n$webHook-\u003esend($msg);\n```\n\n---\n\n## 📦 Embeds\n\nBefore sending a message, you may want to add an embed. You can construct an `Embed` object and use `Message-\u003eaddEmbed()` to include it.  \nAntes de enviar un mensaje, quizá quieras agregar un embed. Puedes construir un objeto `Embed` y usar `Message-\u003eaddEmbed()` para incluirlo.\n\n```php\n$embed = new Embed();\n$embed-\u003esetTitle(\"Embed Title Here\");\n$embed-\u003esetDescription(\"A very awesome description / Una descripción muy genial\");\n```\n\nYou can also add a footer:  \nTambién puedes añadir un pie de página:\n\n```php\n$embed-\u003esetFooter(\"Footer text / Texto del pie de página\");\n```\n\nFinally, add the embed to the message:  \nFinalmente, agrega el embed al mensaje:\n\n```php\n$msg-\u003eaddEmbed($embed);\n```\n\n---\n\n## Example Code / Código de ejemplo:\n\n```php\n$webHook = new Webhook(\"YOUR WEBHOOK URL\");\n$msg = new Message();\n$msg-\u003esetUsername(\"USERNAME\");\n$msg-\u003esetAvatarURL(\"https://cortexpe.xyz/utils/kitsu.png\");\n$msg-\u003esetContent(\"INSERT TEXT HERE\");\n\n$embed = new Embed();\n$embed-\u003esetTitle(\"EMBED 1\");\n$embed-\u003esetColor(0xFF0000);\n$msg-\u003eaddEmbed($embed);\n\n$embed = new Embed();\n$embed-\u003esetTitle(\"EMBED 2\");\n$embed-\u003esetColor(0x00FF00);\n$embed-\u003esetAuthor(\"AUTHOR\", \"https://CortexPE.xyz\", \"https://cortexpe.xyz/utils/kitsu.png\");\n$embed-\u003esetDescription(\"Lorem ipsum dolor sit amet.\");\n$msg-\u003eaddEmbed($embed);\n\n$webHook-\u003esend($msg);\n```\n\n---\n\n**This API was made with ❤️ by CortexPE updated by Nozell. Enjoy!~ :3**  \n**Esta API fue hecha con ❤️ por CortexPE actualizado por Nozell. ¡Disfrútala!~ :3**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimjustnozell%2Fdiscordwebhookapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimjustnozell%2Fdiscordwebhookapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimjustnozell%2Fdiscordwebhookapi/lists"}