Developed a robust, self-hosted music bot for Discord communities, engineered to provide low-latency audio streaming. Updated the core infrastructure to align with Discord.js v14 standards, ensuring long-term stability and compatibility with the latest API gateway intents. Technical Execution & Key Features Modern Voice Architecture: Implemented the @discordjs/voice library to manage complex voice connection states (Signaling, Connecting, Ready). This decoupled approach allows for greater reliability during channel switching and network instability. Resilient Stream Pipeline: Integrated @distube/ytdl-core to resolve widely reported 403 Forbidden errors associated with standard YouTube extractors. This ensures consistent uptime and successful audio resource creation where other bots fail. Audio Transcoding: Configured an FFmpeg pipeline to handle real-time audio processing, converting raw streams into optimized Opus packets for delivery via UDP to Discord's voice servers. Gateway Intent Management: Configured specific GatewayIntentBits (GuildVoiceStates, GuildMessages) to minimize API overhead while maintaining necessary permissions for command parsing and voice state tracking. Event-Driven Error Handling: Wrote comprehensive error listeners for the AudioPlayer and VoiceConnection interfaces to gracefully handle stream interruptions and automatically clean up resources (disconnect) when idle. Technologies Used: Node.js, Discord.js v14, @discordjs/voice, @distube/ytdl-core, FFmpeg, WebSocket Gateway API.