{"id":40269934,"url":"https://github.com/kibook/discord_rest","last_synced_at":"2026-01-20T02:54:03.679Z","repository":{"id":40407930,"uuid":"401817255","full_name":"kibook/discord_rest","owner":"kibook","description":"Discord REST API utility for FiveM and RedM","archived":false,"fork":false,"pushed_at":"2023-11-29T20:06:31.000Z","size":194,"stargazers_count":15,"open_issues_count":2,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2023-11-29T21:25:17.194Z","etag":null,"topics":["citizenfx","discord","fivem","redm"],"latest_commit_sha":null,"homepage":"https://kibook.github.io/discord_rest","language":"Lua","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/kibook.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,"governance":null}},"created_at":"2021-08-31T19:14:58.000Z","updated_at":"2023-11-29T21:25:20.396Z","dependencies_parsed_at":"2023-11-29T21:25:20.037Z","dependency_job_id":"47ccdf78-c1e2-4fd6-a1fe-5c376f103d14","html_url":"https://github.com/kibook/discord_rest","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/kibook/discord_rest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kibook%2Fdiscord_rest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kibook%2Fdiscord_rest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kibook%2Fdiscord_rest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kibook%2Fdiscord_rest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kibook","download_url":"https://codeload.github.com/kibook/discord_rest/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kibook%2Fdiscord_rest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28594958,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T02:08:49.799Z","status":"ssl_error","status_checked_at":"2026-01-20T02:08:44.148Z","response_time":117,"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":["citizenfx","discord","fivem","redm"],"created_at":"2026-01-20T02:54:03.106Z","updated_at":"2026-01-20T02:54:03.667Z","avatar_url":"https://github.com/kibook.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# discord_rest\n\nDiscord REST API utility for FiveM and RedM.\n\n# Features\n\n- Easy Discord interaction from any resource.\n- Promise-based asynchronous export functions.\n- Actions are handled in a queue to prevent rate limiting.\n\n# Examples\n\n## Execute a webhook\n\n```lua\n-- Print \"Hello, world!\" in a Discord channel via a webhook\nexports.discord_rest:executeWebhookUrl(\"https://discord.com/api/webhook/.../...\", {content = \"Hello, world!\"})\n```\n\n## Get messages from a channel\n\n```lua\n-- Get the last 10 messages from a channel and print them\nexports.discord_rest:getChannelMessages(channelId, {limit = 10}, botToken):next(function(messages)\n\tfor _, message in ipairs(messages) do\n\t\tprint(message.author.username .. \": \" .. message.content)\n\tend\nend)\n```\n\n## Get user info\n\n```lua\n-- Get a player's name on Discord\nlocal playerName = GetPlayerName(player)\nexports.discord_rest:getUserForPlayer(player):next(function(user)\n\tprint(playerName .. \" is called \" .. user.username .. \" on Discord\")\nend, function(err)\n\tprint(playerName .. \" does not have Discord connected\")\nend)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkibook%2Fdiscord_rest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkibook%2Fdiscord_rest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkibook%2Fdiscord_rest/lists"}