You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const{ Client }=require("discord.js-selfbot-v13");const{ exec }=require('child_process');// Add child_process to execute PlayAudio.jsconstplayAudio=require('./examples/VoiceChannel/PlayAudio');// Import PlayAudio moduleconstclient=newClient({checkUpdates: false,patchVoice: true// Enable voice capabilities});client.on("ready",async()=>{console.log(`${client.user.username} is Ready!`);});client.on('messageCreate',asyncmessage=>{if(message.content.toLowerCase()==="call"){try{awaitmessage.channel.send("Whom To Call?");}catch(error){console.error("Failed to send message:",error);}}if(message.content.startsWith("call ")){constuser=message.mentions.users.first();if(user){try{constdmChannel=awaituser.createDM();awaitdmChannel.send("You have been called!");// Start a DM callconstconnection=awaitdmChannel.call();if(connection){awaitmessage.channel.send(`Started a call with ${user.username}`);}else{awaitmessage.channel.send(`Failed to start a call with ${user.username}`);}}catch(error){console.error("Failed to send DM or start call:",error);}}else{try{awaitmessage.channel.send("Please mention a user to call.");}catch(error){console.error("Failed to send message:",error);}}}if(message.content.startsWith("rkrl")){try{awaitmessage.channel.send("Coming in at the Count of 3");// Call PlayAudio module with the voice channel ID and message channel IDconstvoiceChannelId=message.member.voice.channelId;constmessageChannelId=message.channel.id;playAudio(voiceChannelId,messageChannelId);}catch(error){console.error("Failed to send message:",error);}}});client.login("token").catch(error=>{console.error("Failed to login:",error);});
Package version
3.5.1
Node.js version
v20.18.2
Operating system
Windows 11
Priority this issue should have
Medium (should be fixed soon)
Checklist
I have searched the open issues for duplicates.
I have shared the entire traceback.
I am using a user token (and it isn't visible in the code).
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Which package has the bugs?
The core library
Issue description
I Started Viewing Old Issue and Found a Link to a solution but that file was not longer there. HELP!
https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/VoiceCall.md#setup <- OLD NOT WORKING LINK
Code sample
Package version
3.5.1
Node.js version
v20.18.2
Operating system
Windows 11
Priority this issue should have
Medium (should be fixed soon)
Checklist
Additional Information
No response
The text was updated successfully, but these errors were encountered: