{"id":15021699,"url":"https://github.com/pgamerx/djs-tickets","last_synced_at":"2025-10-29T22:31:11.900Z","repository":{"id":44686781,"uuid":"302257442","full_name":"pgamerx/djs-tickets","owner":"pgamerx","description":"An easy-to-use npm package that allows you to add ticket system to your discord bot","archived":false,"fork":false,"pushed_at":"2022-02-01T10:58:55.000Z","size":304,"stargazers_count":3,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-02T04:21:23.935Z","etag":null,"topics":["bot","discord","discord-api","discord-bot","discord-js","discord-ticket-bot","discord-tickets","discordjs","djs-tickets","hacktoberfest","hacktoberfest2021","nodejs"],"latest_commit_sha":null,"homepage":"https://djs-tickets.js.org","language":"TypeScript","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/pgamerx.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}},"created_at":"2020-10-08T06:59:33.000Z","updated_at":"2022-02-05T07:46:41.000Z","dependencies_parsed_at":"2022-08-24T21:01:39.980Z","dependency_job_id":null,"html_url":"https://github.com/pgamerx/djs-tickets","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgamerx%2Fdjs-tickets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgamerx%2Fdjs-tickets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgamerx%2Fdjs-tickets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgamerx%2Fdjs-tickets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pgamerx","download_url":"https://codeload.github.com/pgamerx/djs-tickets/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238909272,"owners_count":19550836,"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":["bot","discord","discord-api","discord-bot","discord-js","discord-ticket-bot","discord-tickets","discordjs","djs-tickets","hacktoberfest","hacktoberfest2021","nodejs"],"created_at":"2024-09-24T19:56:55.106Z","updated_at":"2025-10-29T22:31:11.554Z","avatar_url":"https://github.com/pgamerx.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Installation\n```txt\nnpm i djs-tickets\n```\n\n## Delcaration\n```js\nconst ts = require('djs-tickets')\n```\n\n## Initialising (Mandatory)\n```js\nts.start(Client,Embed(optional))     \n```\n- **Client**: *(Object)* is the Client object of the bot, which is required for the ticket system to work.\n- Embed: *(DiscordJS-Embed)* is the embed which you want to be sent in the ticket channel when ticket is opened.\n## Setup Ticket \n```js\nts.setup(Message,ChannelID,Embed(optional))\n```\n- **Message**: *(Object)* is the object provided in client.on('messageCreate') event, if you want to use with slash command, you can provide Interaction which is provided in client.on('InteractionCreate') event in Djs v13.     \n- **ChannelID**: *(String)* is the channelID where you want bot to send the message to which people can react to and open a ticket\n- Embed: *(DiscordJS-Embed)* is the embed which you want people to react to in order to open the ticket.\n\n## Closing Ticket\n```js\nts.close(Message,Transcript)\n```\n- **Message**: *(Object)* is the object provided in client.on('messageCreate') event, if you want to use with slash command, you can provide Interaction which is provided in client.on('InteractionCreate') event in Djs v13.    \n- **Transcript**: *(Boolean)* If you want bot to send transcript, set this parameter as true.      \n\n⚠️ This function will only work in a ticket channel, you don't need to add a manual check yourself :)\n\n# Generated Documentation \n### Table of Contents\n\n*   [start][3]\n    *   [Parameters][4]\n*   [setup][5]\n    *   [Parameters][6]\n*   [close][7]\n    *   [Parameters][8]\n\n## start\n\n### Parameters\n\n*   `client`  The Client object of the bot. (Discord.Client) - Required\n*   `MessageEmbed`  The MessageEmbed object to be used for the ticket. (Discord.MessageEmbed) - Optional\n\n## setup\n\n### Parameters\n\n*   `MessageObject`  The Message Object of the message to be used for the ticket. (Discord.Message) - Required\n*   `ChannelID`  The ID of the channel to be used for the ticket. (String) - Required\n*   `Embed`  The MessageEmbed object to be used for the ticket. (Discord.MessageEmbed) - Optional\n\n## close\n\n### Parameters\n\n*   `message`  The Message Object of the message to be used for the ticket. (Discord.Message) - Required\n*   `transcript`  The Boolean value to be used for the transcript. (Boolean) - Required\n\n[3]: #start\n\n[4]: #parameters\n\n[5]: #setup\n\n[6]: #parameters-1\n\n[7]: #close\n\n[8]: #parameters-2\n## Support\nFeel free to ask for support in [Discord Server](https://u.pgamerx.com/discord)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgamerx%2Fdjs-tickets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpgamerx%2Fdjs-tickets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgamerx%2Fdjs-tickets/lists"}