{"id":14983519,"url":"https://github.com/agenthackeryt/discord-slash.js","last_synced_at":"2026-03-14T13:03:02.927Z","repository":{"id":57232060,"uuid":"443185380","full_name":"AgentHackerYT/discord-slash.js","owner":"AgentHackerYT","description":null,"archived":false,"fork":false,"pushed_at":"2022-01-04T13:42:32.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-09T11:32:00.176Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/AgentHackerYT.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}},"created_at":"2021-12-30T21:09:28.000Z","updated_at":"2023-03-17T12:50:17.000Z","dependencies_parsed_at":"2022-08-31T14:10:28.391Z","dependency_job_id":null,"html_url":"https://github.com/AgentHackerYT/discord-slash.js","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/AgentHackerYT%2Fdiscord-slash.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AgentHackerYT%2Fdiscord-slash.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AgentHackerYT%2Fdiscord-slash.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AgentHackerYT%2Fdiscord-slash.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AgentHackerYT","download_url":"https://codeload.github.com/AgentHackerYT/discord-slash.js/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243012662,"owners_count":20221606,"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":[],"created_at":"2024-09-24T14:07:19.531Z","updated_at":"2025-12-16T12:02:34.787Z","avatar_url":"https://github.com/AgentHackerYT.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# discord-slash.js\n- Easy To Use \n# How To Use\n- Create A Dir (i created a Dir/Folder and Named It commands)\n- Now Copy This Code\n```js\nconst { Client, Intents } = require(\"discord.js\")\n\nconst client = new Client({ intents: [Intents.FLAGS.GUILDS] })\n\nconst { SlashCommands } = require(\"discord-slash.js\")\n\nconst commands = new SlashCommands({\n  client: client,\n  dir: \"commands\"\n})\n```\n- Now Go To Commands Dir and Create A Folder Which Will Be Our Command File \n- Example Command / Ping Command\n```js\n  module.exports = {\n    name: \"ping\",\n    description: \"ping Command\",\n    run: async(i, client) =\u003e{\n    \n    i.reply({content: \"Pong\"})\n    \n    }\n    }\n```\n- Use .register Function To Register The Command\n```js\n commands.register()\n```\n- Then Use .handle Function To Handle The Commands\n```js\ncommands.handle()\n```\n- Or If You Want Addtional Parms to be added to Commands\n```js\ncommands.handle(parms1, parms2)\n```\n- To Delete All Commands Use .deleteAll Function\n```js\ncommands.deleteAll()\n```\n- To Delete A Particular Command Use .delete Function\n```js\ncommands.delete(name)\n```\n- Add A Single Command use .registerSingleCommand Function\n```js\ncommands.registerSingleCommand({name: \"some-name\", description: \"Some Description\"})\n```\n# Credits\n- Developed By Agent Hacker\n- Discord : Agent Hacker#0477\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagenthackeryt%2Fdiscord-slash.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagenthackeryt%2Fdiscord-slash.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagenthackeryt%2Fdiscord-slash.js/lists"}