{"id":21221280,"url":"https://github.com/rillis/discord","last_synced_at":"2026-05-10T15:36:43.334Z","repository":{"id":57722386,"uuid":"261630526","full_name":"rillis/discord","owner":"rillis","description":"API for Discord Webhook messages.","archived":false,"fork":false,"pushed_at":"2023-11-14T23:28:49.000Z","size":22,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-21T17:11:29.777Z","etag":null,"topics":["api","discord","maven","webhook"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rillis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-06T02:17:25.000Z","updated_at":"2023-07-17T04:13:07.000Z","dependencies_parsed_at":"2022-08-29T22:50:31.157Z","dependency_job_id":null,"html_url":"https://github.com/rillis/discord","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rillis%2Fdiscord","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rillis%2Fdiscord/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rillis%2Fdiscord/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rillis%2Fdiscord/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rillis","download_url":"https://codeload.github.com/rillis/discord/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243668239,"owners_count":20328042,"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","maven","webhook"],"created_at":"2024-11-20T22:26:20.106Z","updated_at":"2026-05-10T15:36:38.272Z","avatar_url":"https://github.com/rillis.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Discord \n\n![Maven](https://img.shields.io/maven-central/v/com.github.rillis/discord)\n![License](https://img.shields.io/github/license/rillis/discord)\n\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.github.rillis\u003c/groupId\u003e\n  \u003cartifactId\u003ediscord\u003c/artifactId\u003e\n  \u003cversion\u003e1.0.1\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Docs\n\n**Example:**  \n```java\nString webhookUrl = \"\";\nDiscord discord = new Discord(webhookUrl,\"RillisBOT\", \"https://via.placeholder.com/400x400.png\");\n\n//(1) only content:\nString content = \"FooContent\";\ntry {\n\tdiscord.sendMessage(content);\n} catch (IOException e) {\n\te.printStackTrace();\n}\n\n//(2) content and/or embed(s):\n\n//Setup content, in this case this can be null (only if embed != null)\ncontent = \"FooContent\";\n\n//Setup for embed\n\n//Author stay on top of the message\n//Author or any arguments can be null or blank\nAuthor author = new Author(\"Rillis Vernucio\",\"https://github.com/rillis/discord\",\"https://avatars2.githubusercontent.com/u/16558619?s=460\u0026u=a83e4a1703074c46f28baab5a67c37c687c2fcfd\u0026v=4\");\n\n//Those can be blank or null\nString title = \"Title placeholder\";\nString url = \"https://github.com/rillis/discord\";\nString description = \"Description placeholder.\";\n\n//Color can be 0 if you don't want as a part of the message.\nlong color = 392183;\n\n//Fields (isn't required), if you aren't using it just set:\n//Field[] fields = null;\nField field1 = new Field(\"Foo1\",\"Bar1\",true);\nField field2 = new Field(\"Foo2\",\"Bar2\",true);\nField field3 = new Field(\"Foo3\",\"Bar3\",false);\nField[] fields = {field1, field2, field3};\n\n//Any of those can be null\nThumbnail thumbnail = new Thumbnail(\"https://via.placeholder.com/200x400.png\");\nImage image = new Image(\"https://via.placeholder.com/350x350.png\");\nFooter footer = new Footer(\"Footer text\", \"https://via.placeholder.com/400x400.png\");\n\n//Setup embed using variables above\nEmbed embed = new Embed(author, title, url, description, color, fields, thumbnail, image, footer);\n\n//embed field can be an array for multiple embeds\ntry {\n\tdiscord.sendMessage(content,embed);\n} catch (IOException e) {\n\te.printStackTrace();\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frillis%2Fdiscord","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frillis%2Fdiscord","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frillis%2Fdiscord/lists"}