{"id":19149162,"url":"https://github.com/flytegg/discord-generator","last_synced_at":"2025-06-19T07:35:42.693Z","repository":{"id":199677274,"uuid":"703262072","full_name":"flytegg/discord-generator","owner":"flytegg","description":"Generate Discord messages on a HTML canvas, e.g. for ticket transcripts or message lookup results.","archived":false,"fork":false,"pushed_at":"2024-03-29T21:12:20.000Z","size":89,"stargazers_count":10,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T06:24:34.604Z","etag":null,"topics":["discord","generated","html","kotlin","transcript"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flytegg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-10-10T23:07:59.000Z","updated_at":"2024-12-30T16:09:56.000Z","dependencies_parsed_at":"2023-11-24T01:29:33.826Z","dependency_job_id":null,"html_url":"https://github.com/flytegg/discord-generator","commit_stats":null,"previous_names":["flytegg/discord-generator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flytegg%2Fdiscord-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flytegg%2Fdiscord-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flytegg%2Fdiscord-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flytegg%2Fdiscord-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flytegg","download_url":"https://codeload.github.com/flytegg/discord-generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249727372,"owners_count":21316639,"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":["discord","generated","html","kotlin","transcript"],"created_at":"2024-11-09T08:06:56.285Z","updated_at":"2025-04-19T15:32:23.292Z","avatar_url":"https://github.com/flytegg.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# discord-generator\nGenerate Discord messages on a HTML canvas, e.g. for ticket transcripts or message lookup results.\n\nThe following example is how you can use the library to generate HTML output:\n```kt\nval output = DiscordGenerator {\n    title = \"Export for joshbker\"\n\n    addMessages(\n        Component.Message(\n            author = Component.Author(\n                \"https://cdn.discordapp.com/guilds/1055283692668469341/users/259780560707256321/avatars/df7191cbe92b582ff1abc271aea76e8a.webp?size=128\",\n                \"josh\",\n                false\n            ),\n            timestamp = 1696948904000L,\n            content = \"testing yessir yes epic\",\n            embeds = listOf(\n                Component.Embed(\"Josh - Support Ticket #8\", \"Some description\"),\n            ),\n            images = listOf(\n                Component.Image(\"https://media.tenor.com/BHTQmBYipVEAAAAC/anyon-birthday.gif\"),\n            ),\n            reactions = listOf(\n                Component.Reaction(\n                    \"https://cdn.discordapp.com/emojis/614661097978462209.webp?size=32\u0026quality=lossless\",\n                    1\n                ),\n            )\n        )\n    )\n}.generate()\n```\nThis above produces this HTML document:\n![image](https://github.com/flytegg/discord-generator/assets/43449531/d7755e6a-7f4f-4f78-b225-d9d6860ebc59)\n\n## How to use\n\nGradle (Kotlin DSL)\n```kotlin\nmaven(\"https://repo.flyte.gg/releases\")\n\nimplementation(\"gg.flyte:discordgenerator:1.0.6\")\n```\n\nGradle (Groovy DSL)\n```groovy\nmaven {\n    url \"https://repo.flyte.gg/releases\"\n}\n\nimplementation \"gg.flyte:discordgenerator:1.0.6\"\n```\n\nMaven\n```xml\n\u003crepository\u003e\n    \u003cid\u003eflyte-repository-releases\u003c/id\u003e\n    \u003cname\u003eFlyte Repository\u003c/name\u003e\n    \u003curl\u003ehttps://repo.flyte.gg/releases\u003c/url\u003e\n\u003c/repository\u003e\n\n\u003cdependency\u003e\n  \u003cgroupId\u003egg.flyte\u003c/groupId\u003e\n  \u003cartifactId\u003ediscordgenerator\u003c/artifactId\u003e\n  \u003cversion\u003e1.0.6\u003c/version\u003e\n\u003c/dependency\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflytegg%2Fdiscord-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflytegg%2Fdiscord-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflytegg%2Fdiscord-generator/lists"}