{"id":19866911,"url":"https://github.com/xrongo/discord-utilize","last_synced_at":"2026-03-09T06:33:55.822Z","repository":{"id":247979968,"uuid":"827396423","full_name":"XRongo/discord-utilize","owner":"XRongo","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-11T20:44:24.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-05T12:47:51.065Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/XRongo.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-07-11T15:18:54.000Z","updated_at":"2024-07-11T20:44:28.000Z","dependencies_parsed_at":"2025-03-05T12:43:50.973Z","dependency_job_id":null,"html_url":"https://github.com/XRongo/discord-utilize","commit_stats":null,"previous_names":["xrongo/discord-utils"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/XRongo/discord-utilize","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XRongo%2Fdiscord-utilize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XRongo%2Fdiscord-utilize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XRongo%2Fdiscord-utilize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XRongo%2Fdiscord-utilize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/XRongo","download_url":"https://codeload.github.com/XRongo/discord-utilize/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XRongo%2Fdiscord-utilize/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30284776,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T02:57:19.223Z","status":"ssl_error","status_checked_at":"2026-03-09T02:56:26.373Z","response_time":61,"last_error":"SSL_read: 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-11-12T15:27:41.824Z","updated_at":"2026-03-09T06:33:55.797Z","avatar_url":"https://github.com/XRongo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Discord Utilize\n🛠️ A utility module for Discord.js applications, providing embed functions, error handling, and more.\n\n## 🏅 Usages\n```js\nconst { CrashBlocker, newEmbed, EmbedStyle, EmbedLanguage, PageBuilder } = require(\"discord-utilize\");\n/* import { CrashBlocker, newEmbed, EmbedStyle, EmbedLanguage } from \"discord-utilize\"; */\nconst { Client } = require(\"discord.js\")\n/* import { Client } from \"discord.js\"; */\n\nconst client = new Client({ intents: [] })\n\nnew CrashBlocker().init() // Your application will never crash.\n\n// Türkçe Embedler\nconst defaultEmbedTurkish = newEmbed(client, EmbedStyle.Default) // Returns EmbedBuilder but it has title and color.\nconst successEmbedTurkish = newEmbed(client, EmbedStyle.Default) // Returns EmbedBuilder but it has title and color.\nconst errorEmbedTurkish = newEmbed(client, EmbedStyle.Default) // Returns EmbedBuilder but it has title and color.\n\n// English Embeds\nconst defaultEmbedEnglish = newEmbed(client, EmbedStyle.Default, EmbedLanguage.English) // Returns EmbedBuilder but it has title and color.\nconst successEmbedEnglish = newEmbed(client, EmbedStyle.Default, EmbedLanguage.English) // Returns EmbedBuilder but it has title and color.\nconst errorEmbedEnglish = newEmbed(client, EmbedStyle.Default, EmbedLanguage.English) // Returns EmbedBuilder but it has title and color.\n\n// Pagination System (PageBuilder)\n\nclient.on(\"messageCreate\", async (message) =\u003e {\n    if (message.content === \"page\") {\n        const Page = new PageBuilder()\n            .setComponents()\n\n        const embed1 = new EmbedBuilder().setTitle(\"Page 1\").setDescription(\"Hello World\");\n        const embed2 = new EmbedBuilder().setTitle(\"Page 2\").setDescription(\"Hello World\");\n        const embed3 = new EmbedBuilder().setTitle(\"Page 3\").setDescription(\"Hello World\");\n        const embed4 = new EmbedBuilder().setTitle(\"Page 4\").setDescription(\"Hello World\");\n        const embed5 = new EmbedBuilder().setTitle(\"Page 5\").setDescription(\"Hello World\");\n\n        const msg = await message.reply({ embeds: [embed1], components: [Page.getComponents()] })\n        const collector = msg.createMessageComponentCollector({ filter: i =\u003e i.user.id === message.author.id, time: 60000 })\n        Page.setCollector(collector)\n        Page.setPages([embed1, embed2, embed3, embed4, embed5, embed6, embed7])\n        await Page.init()\n        collector.on(\"collect\", async (i) =\u003e {\n            i.update({ embeds: [Page.getPage()], components: [Page.getComponents()] })\n        })\n    }\n})\n```\n\n## 🐞 I found a bug!\n📱 You can contact me via [Discord](https://discord.gg/codebot)!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxrongo%2Fdiscord-utilize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxrongo%2Fdiscord-utilize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxrongo%2Fdiscord-utilize/lists"}