Toothless
Toothless
DIAdiscord.js - Imagine a bot
Created by Toothless on 2/27/2024 in #djs-questions
how to create /leave command i know how to write /join command
time to mark the post as resolved
35 replies
DIAdiscord.js - Imagine a bot
Created by Toothless on 2/27/2024 in #djs-questions
how to create /leave command i know how to write /join command
ofcourse okey here is deal for non cooding friend mean i wont dm you for code just be a friend
35 replies
DIAdiscord.js - Imagine a bot
Created by Toothless on 2/27/2024 in #djs-questions
how to create /leave command i know how to write /join command
last thing can you be my friend do not worry i will only dm you when its so important
35 replies
DIAdiscord.js - Imagine a bot
Created by Toothless on 2/27/2024 in #djs-questions
how to create /leave command i know how to write /join command
yes you are right btw i watched every thing what i can lol i am happy now now time to do some work on play command
35 replies
DIAdiscord.js - Imagine a bot
Created by Toothless on 2/27/2024 in #djs-questions
how to create /leave command i know how to write /join command
man i am so pi*sd now because that goad damm voice documantation s**ks i do not get the did so much good job on rest of guid but like on voice the did nothing
35 replies
DIAdiscord.js - Imagine a bot
Created by Toothless on 2/27/2024 in #djs-questions
how to create /leave command i know how to write /join command
you are a goat
35 replies
DIAdiscord.js - Imagine a bot
Created by Toothless on 2/27/2024 in #djs-questions
how to create /leave command i know how to write /join command
wow man you are genius it worked can you explainme how please
35 replies
DIAdiscord.js - Imagine a bot
Created by Toothless on 2/27/2024 in #djs-questions
how to create /leave command i know how to write /join command
ohh my bad wait
35 replies
DIAdiscord.js - Imagine a bot
Created by Toothless on 2/27/2024 in #djs-questions
how to create /leave command i know how to write /join command
do you see something wrong
35 replies
DIAdiscord.js - Imagine a bot
Created by Toothless on 2/27/2024 in #djs-questions
how to create /leave command i know how to write /join command
wth now i am not getting error bot the command is not working here is the code const { SlashCommandBuilder } = require('discord.js'); const { getVoiceConnection } = require('@discordjs/voice'); module.exports = { data: new SlashCommandBuilder() .setName('leave') .setDescription('leaves voice channel in which you are'), async execute(interaction) { const connection = getVoiceConnection({guildId : interaction.guildId}); if (connection) connection.destroy(); await interaction.reply("the bot has leaved the channel")
} }
35 replies
DIAdiscord.js - Imagine a bot
Created by Toothless on 2/27/2024 in #djs-questions
how to create /leave command i know how to write /join command
ok let me see wait h a minute
35 replies
DIAdiscord.js - Imagine a bot
Created by Toothless on 2/27/2024 in #djs-questions
how to create /leave command i know how to write /join command
but you are using newstate function thats diff story cna you show full code
35 replies
DIAdiscord.js - Imagine a bot
Created by Toothless on 2/27/2024 in #djs-questions
how to create /leave command i know how to write /join command
i tried this wanna see error 😆
35 replies
DIAdiscord.js - Imagine a bot
Created by Toothless on 2/27/2024 in #djs-questions
how to create /leave command i know how to write /join command
ReferenceError: Cannot access 'connection' before initialization
35 replies
DIAdiscord.js - Imagine a bot
Created by Toothless on 2/27/2024 in #djs-questions
how to create /leave command i know how to write /join command
const { SlashCommandBuilder } = require('discord.js');
const {connection} = require('@discordjs/voice');

module.exports = {
data: new SlashCommandBuilder()
.setName('leave')
.setDescription('leaves voice channel in which you are'),
async execute(interaction) {
const connection = connection.destroy();
await interaction.reply("the bot has leaved the channel")

}
}
const { SlashCommandBuilder } = require('discord.js');
const {connection} = require('@discordjs/voice');

module.exports = {
data: new SlashCommandBuilder()
.setName('leave')
.setDescription('leaves voice channel in which you are'),
async execute(interaction) {
const connection = connection.destroy();
await interaction.reply("the bot has leaved the channel")

}
}
35 replies
DIAdiscord.js - Imagine a bot
Created by Toothless on 2/27/2024 in #djs-questions
how to create /leave command i know how to write /join command
i did tried and implement some code so here is the code and error
35 replies
DIAdiscord.js - Imagine a bot
Created by Toothless on 2/27/2024 in #djs-questions
how to create /leave command i know how to write /join command
sorry
35 replies
DIAdiscord.js - Imagine a bot
Created by Toothless on 2/27/2024 in #djs-questions
how to create /leave command i know how to write /join command
can i ping you @ʎǝɹquoɯ
35 replies
DIAdiscord.js - Imagine a bot
Created by Toothless on 2/27/2024 in #djs-questions
how to create /leave command i know how to write /join command
i did try but i am noob i like spoon fiding can you write the code thats what you think but the truth is i am reading this god dam voice docummantaton from last 1 month but i got no idea please help me
35 replies
DIAdiscord.js - Imagine a bot
Created by Toothless on 2/26/2024 in #djs-questions
how to know the channel id of voice channel so that i do not need to put my channel id manually
thanks @ShompiFlen also good guy see ya
76 replies