{"id":14983340,"url":"https://github.com/amir-78/djs-helper","last_synced_at":"2025-04-23T19:41:10.843Z","repository":{"id":39920369,"uuid":"492029561","full_name":"Amir-78/djs-helper","owner":"Amir-78","description":"djs-helper is a JavaScript library that helps you to develop your own Discord Bot, Still under development, more features will be added in the future","archived":false,"fork":false,"pushed_at":"2022-09-20T11:29:55.000Z","size":58,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-19T21:40:29.697Z","etag":null,"topics":["discord","discord-js","djs","djs-helper","djs-v13","javascript","nodejs","npm"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/Amir-78.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","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":"2022-05-13T20:17:10.000Z","updated_at":"2024-11-14T12:30:38.000Z","dependencies_parsed_at":"2022-09-04T06:20:56.002Z","dependency_job_id":null,"html_url":"https://github.com/Amir-78/djs-helper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amir-78%2Fdjs-helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amir-78%2Fdjs-helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amir-78%2Fdjs-helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amir-78%2Fdjs-helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Amir-78","download_url":"https://codeload.github.com/Amir-78/djs-helper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250501175,"owners_count":21440961,"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","discord-js","djs","djs-helper","djs-v13","javascript","nodejs","npm"],"created_at":"2024-09-24T14:07:05.239Z","updated_at":"2025-04-23T19:41:10.812Z","avatar_url":"https://github.com/Amir-78.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# djs-helper\n**djs-helper** is a JavaScript library that helps you to develop your own Discord Bot, **Still under development, more features will be added in the future**\n\n## Installation\n\u003cdiv align=\"center\"\u003e\n    \u003ca href=\"https://www.npmjs.com/package/djs-helper\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/djs-helper.svg?maxAge=3600\" alt=\"npm version\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://www.npmjs.com/package/djs-helper\"\u003e\u003cimg src=\"https://img.shields.io/npm/dt/djs-helper.svg?maxAge=3600\" alt=\"npm downloads\" /\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n- Download [Node.js](https://nodejs.org)\n- Write in CMD / Terminal:\n```bash\nnpm i djs-helper\n```\n## Example Code:\n\n```javascript\nconst { Client, Intents, MessageEmbed } = require('discord.js');\nconst DjsH = require('djs-helper');\nconst client = new Client({ intents: [Intents.FLAGS.GUILDS] });\n\nclient.on('ready', () =\u003e {\n    console.log(`Logged in as ${client.user.tag}!`);\n});\n\nclient.on('messageCreate', async (message) =\u003e {\n    if (!message.guild) return;\n    if (message.startsWith('!extract-emojis')) {\n        let emojis = DjsH.matchEmojis(message.content, true);\n        if (emojis.length === 0) {\n            let embed = new MessageEmbed()\n                .setTitle(\"Extract Emojis\")\n                .setDescription(\":x: No emoji found!\")\n                .setColor(DjsH.Colors.HEX.Red)\n            return message.reply({ embeds: [embed] });\n        } else {\n            let embed = new MessageEmbed()\n                .setTitle(\"Extract Emojis\")\n                .setDescription(`Emojis found: \\`${emojis.join(',')}\\``)\n                .setColor(DjsH.Colors.HEX.Aqua)\n            message.reply({ embeds: [embed] });\n        }\n    }\n});\n\nclient.login('token');\n```\n\n## Documentation\n### Functions:\n\n **Name**      | **Params**            | **Type**           | **Function**           | **Returns**                                                                                                 \n---------------|-----------------------|--------------------|------------------------|------------------------------------------------------------------------------------\n matchId()     | `content`             | `String`           | `Extract All Discord IDs from content`  | `Array`                                                                    \n matchEmojis() | `content`,`unicode`   | `String`,`Boolean` | `Extract All Discord Emojis from content, If` **unicode** `is` **true** `it will return Unicode emojis too`| `Array`\n isInvite()    | `content`             | `String`           | `Checks if content contains Discord Invites`| `Boolean`                                                        \n isURL()       | `content`,`whitelist` | `String`,`Array`   | `Checks if content contains URLs`| `Boolean`  \n splitMessage()       | `content`,`max` | `String`,`Number`   | `Split string every` max `default: 2000 max`| `Array`\n await getMember()       | `guild`,`userID` | `Object`,`String`   | `Get member from guild using ID`| `Object`/`null`\nawait guildsCount()       | `client` | `Object (Discord.Client())`  | `Get client guilds count (Supports Sharding)`| `Number`       \nawait usersCount()       | `client` | `Object (Discord.Client())`  | `Get client users count (Supports Sharding)` | `Number`        \nawait channelsCount()       | `client` | `Object (Discord.Client())`  | `Get client channels count (Supports Sharding)`| `Number`  \n await getUser()       | `client`,`userID` | `Object (Discord.Client())`,`String`   | `Get user using ID`| `Object`/`null`| `Object`/`null`   \n[await Inviter()](https://github.com/Amir-78/djs-helper/blob/master/examples/Inviter.md#await-inviter)       | `client`,`member` | `Object (Discord.Client())`,`Object (GuildMember)`   | `Get used invite`| `Object`                                                   \n                                                                                                 \n### Utils:\n\n Name   | Function            | Usage                                    \n--------|---------------------|------------------------------------------\n Colors | Contains all colors | to Show all colors: `console.log(Colors.HEX)` \n\n\n## Contributing\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famir-78%2Fdjs-helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famir-78%2Fdjs-helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famir-78%2Fdjs-helper/lists"}