{"id":"horsenuggets/discord-luau-fork","name":"discord-luau-fork","scope":"horsenuggets","platform":"roblox","description":"A Luau library for creating Discord bots, powered by Lune.","version":"1.0.13","latest":"1.0.13","versions":["1.0.0","1.0.4","1.0.5","1.0.6","1.0.7","1.0.8","1.0.9","1.0.10","1.0.11","1.0.12","1.0.13"],"license":"MIT","licenseRating":"safe","licenseCaveats":[],"licenseVerified":true,"dependencies":{"horsenuggets/luau-futures":{"version":"^2.0.0-beta.6","alias":"Future"},"horsenuggets/t":{"version":"^3.1.1-horse.0.3","alias":"t"}},"integrity":"cc4d8dd386b193826d413b8a91cf9ea0592407e39928d97d648131ee333ca7c8","likes":0,"downloads":0,"install":"forest install horsenuggets/discord-luau-fork","url":"https://forest.dev/p/roblox/horsenuggets/discord-luau-fork","files":"https://api.forest.dev/ai/package/roblox/horsenuggets/discord-luau-fork/files","readme":"# discord-luau-fork\n\nA Luau library for creating Discord bots, powered by Lune.\n\n[![Documentation](https://img.shields.io/badge/docs-horsenuggets.github.io-blue)](https://horsenuggets.github.io/discord-luau-fork-docs/)\n[![Wally](https://img.shields.io/badge/wally-horsenuggets%2Fdiscord--luau--fork-brightgreen)](https://wally.run/package/horsenuggets/discord-luau-fork)\n\n## Documentation\n\nFull API documentation is available at **[horsenuggets.github.io/discord-luau-fork-docs](https://horsenuggets.github.io/discord-luau-fork-docs/)**.\n\n## Installation\n\nAdd to your `wally.toml`:\n\n```toml\n[dependencies]\nDiscord = \"horsenuggets/discord-luau-fork@1.0.13\"\n```\n\n## Quick Start\n\n```luau\nlocal Discord = require(\"@packages/Discord\")\nlocal process = require(\"@lune/process\")\n\n-- Load environment variables\nlocal Dotenv = require(\"@devpackages/Dotenv\")\nDotenv.load()\n\nlocal bot = Discord.bot.new({\n    token = process.env.DISCORD_BOT_TOKEN,\n    intents = 513, -- Guild, GuildMessages\n})\n\nbot:connectAsync():await()\n\nprint(`Bot connected as {bot.user.username}`)\n```\n\n## Features\n\n- Full Discord Gateway support with automatic reconnection\n- REST API client for all Discord endpoints\n- Slash commands and interactions\n- Message components (buttons, select menus, modals)\n- **Lavalink audio support** for voice functionality\n\n## Lavalink Audio\n\nThis fork includes built-in Lavalink support for Discord voice functionality:\n\n```luau\nlocal Discord = require(\"@packages/Discord\")\nlocal Lavalink = Discord.Lavalink\n\nlocal bot = Discord.bot.new({ ... })\nlocal lavalink = Lavalink.new(bot)\n\n-- Add a Lavalink node\nlavalink:AddNode({\n    name = \"main\",\n    host = \"localhost\",\n    port = 2333,\n    password = \"lifeisroblox\",\n})\n\n-- Get a player for a guild and play music\nlocal player = lavalink:GetPlayer(guildId)\nplayer:Connect(voiceChannelId)\n\nlocal result = lavalink:Search(\"never gonna give you up\")\nif result.loadType == \"search\" then\n    player:Play(result.data[1])\nend\n```\n\n**Note:** Lavalink WebSocket connections require a Lune build with WebSocket headers support.\n\n## Development\n\n1. Clone the repository\n2. Copy `.env.template` to `.env` and fill in your bot token\n3. Run `rokit install` to install tools\n4. Run `wally install` to install dependencies\n5. Run `lune run Scripts/RunTests.luau` to run tests\n\n## Credits\n\nThis is a fork of the original [discord-luau](https://github.com/DiscordLuau/discord-luau) project by [4x8Matrix](https://github.com/4x8Matrix). Special thanks to the original contributors.\n\n## License\n\nMIT\n","readmeTruncated":false}