{"id":20569629,"url":"https://github.com/mrgriefs/discord.js-fivem","last_synced_at":"2026-04-20T10:33:28.740Z","repository":{"id":57212722,"uuid":"403291493","full_name":"MrGriefs/discord.js-fivem","owner":"MrGriefs","description":"Integrates FiveM server \u0026 player data with Discord.js","archived":false,"fork":false,"pushed_at":"2021-09-05T23:33:24.000Z","size":392,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-26T07:40:28.202Z","etag":null,"topics":["discord","discord-js","discordjs","fivem","fivem-server"],"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/MrGriefs.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-09-05T11:33:19.000Z","updated_at":"2024-05-13T08:48:55.000Z","dependencies_parsed_at":"2022-09-07T12:13:22.389Z","dependency_job_id":null,"html_url":"https://github.com/MrGriefs/discord.js-fivem","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/MrGriefs/discord.js-fivem","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrGriefs%2Fdiscord.js-fivem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrGriefs%2Fdiscord.js-fivem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrGriefs%2Fdiscord.js-fivem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrGriefs%2Fdiscord.js-fivem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MrGriefs","download_url":"https://codeload.github.com/MrGriefs/discord.js-fivem/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrGriefs%2Fdiscord.js-fivem/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32043084,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["discord","discord-js","discordjs","fivem","fivem-server"],"created_at":"2024-11-16T05:09:02.567Z","updated_at":"2026-04-20T10:33:28.702Z","avatar_url":"https://github.com/MrGriefs.png","language":"JavaScript","funding_links":["https://patreon.com/yeen"],"categories":[],"sub_categories":[],"readme":"\u003ch2 align=\"center\"\u003eDiscord.js FiveM\u003c/h2\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://patreon.com/yeen\"\u003e\u003cimg alt=\"Patreon\" src=\"https://img.shields.io/badge/patreon-donate?color=F77F6F\u0026labelColor=F96854\u0026logo=patreon\u0026logoColor=ffffff\"\u003e\u003c/a\u003e\n\u003ca href=\"https://discord.gg/2crnTXwQmN\"\u003e\u003cimg alt=\"Discord\" src=\"https://img.shields.io/discord/368557500884189186?color=7389D8\u0026labelColor=6A7EC2\u0026logo=discord\u0026logoColor=ffffff\"\u003e\u003c/a\u003e\n\u003cimg href=\"https://www.npmjs.com/package/discord.js-fivem\" alt=\"David\" src=\"https://img.shields.io/david/MrGriefs/discord.js-fivem\"\u003e\n\u003cimg href=\"https://www.npmjs.com/package/discord.js-fivem\" alt=\"node-current\" src=\"https://img.shields.io/node/v/discord.js-fivem\"\u003e\n\u003cimg href=\"https://www.npmjs.com/package/discord.js-fivem\" alt=\"GitHub package.json version\" src=\"https://img.shields.io/github/package-json/v/MrGriefs/discord.js-fivem\"\u003e\n\u003ca href=\"https://npm.runkit.com/discord.js-fivem\"\u003e\u003cimg alt=\"RunKit\" src=\"https://img.shields.io/badge/Run-Kit-red\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Table of Contents\n\n- [About](#about)\n- [Installation](#installation)\n- [Example](#example)\n- [Documentation](#documentation)\n\n## About\n\ndiscord.js-fivem allows you to intergrate your FiveM server's data with Discord.js, allowing you to monitor your server's players, availability and ping.  \n\n## Installation\n\nWith npm:  \n\n```bash\n$ npm install discord.js-fivem\n```\n\nWith yarn:  \n\n```bash\n$ yarn add discord.js-fivem\n```\n\n## Example\n\nIn the file containing client.login:  \n\n```javascript\nconst { Client } = require('discord.js-fivem');\nconst { Intents } = require('discord.js');\n\nconst client = new Client({\n  intents: [\n    Intents.FLAGS.GUILDS,\n    Intents.FLAGS.GUILD_MESSAGES,\n  ]\n})\n\nclient.on('ready', async () =\u003e {\n  // fetch your server. the server data will automatically refetch after 2 minutes\n  const server = await client.servers.fetch('734okr', {\n    cache: true, // whether to cache this server\n    force: false, // whether to fetch from fivem even if it's in cache\n    update: 120000, // the amount of time (in ms) before updating this server\n  })\n\n  // do something with this information\n  const guild = client.guilds.resolve('1234')\n  const channel = guild.channels.resolve('5678')\n  channel.send(`There are currently ${server.players.cache.size} players in the server!`)\n})\n\nclient.login('your-token-here')\n```\n\n## Documentation\n\nYou can view the [documentation here](https://mrgriefs.github.io/discord.js-fivem).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrgriefs%2Fdiscord.js-fivem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrgriefs%2Fdiscord.js-fivem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrgriefs%2Fdiscord.js-fivem/lists"}