Heph
DIAdiscord.js - Imagine an app
•Created by technyk on 11/11/2024 in #djs-questions
Interaction has already been acknowledged
Np
18 replies
DIAdiscord.js - Imagine an app
•Created by technyk on 11/11/2024 in #djs-questions
Interaction has already been acknowledged
Could also do a .then()
18 replies
DIAdiscord.js - Imagine an app
•Created by Toothless on 2/27/2024 in #djs-questions
how to create /leave command i know how to write /join command
You don't need to be my friend to dm, just keep in mind I have no obligation to assist or even respond. Probably best to just make a post here
But if I'm not busy, happy to help if I have the knowledge
35 replies
DIAdiscord.js - Imagine an app
•Created by Toothless on 2/27/2024 in #djs-questions
how to create /leave command i know how to write /join command
It's a little rough, but it's definitely all there for the most part. Just have to read a little more is all. The documents is not your only guide though. Don't be ashamed to look up on YouTube, GitHub, and simply Google, etc. Just remember to actually learn how it works and not just copy what you see
35 replies
DIAdiscord.js - Imagine an app
•Created by Toothless on 2/27/2024 in #djs-questions
how to create /leave command i know how to write /join command
To destroy the connection, you need to tell it what the connection is. getVoiceConnection just says what that connection is. getVoiceConnection provided with a guildId checks to see if the bot is connected in a VC in that guild
35 replies
DIAdiscord.js - Imagine an app
•Created by Toothless on 2/27/2024 in #djs-questions
how to create /leave command i know how to write /join command
Yes, why are you doing {guildId : interaction.guildId}
35 replies
DIAdiscord.js - Imagine an app
•Created by Toothless on 2/27/2024 in #djs-questions
how to create /leave command i know how to write /join command
What error did you get?
35 replies
DIAdiscord.js - Imagine an app
•Created by Toothless on 2/27/2024 in #djs-questions
how to create /leave command i know how to write /join command
It's the same thing - the guildId
The newState is when a user joins / leaves a vc whereas interaction is the... well interaction. But both values being put in is the guildId so it's the same thing
35 replies
DIAdiscord.js - Imagine an app
•Created by Toothless on 2/27/2024 in #djs-questions
how to create /leave command i know how to write /join command
35 replies
DIAdiscord.js - Imagine an app
•Created by Toothless on 2/27/2024 in #djs-questions
how to create /leave command i know how to write /join command
Sure
35 replies
DIAdiscord.js - Imagine an app
•Created by Toothless on 2/27/2024 in #djs-questions
how to create /leave command i know how to write /join command
Get the voice connection from the server first
const { getVoiceConnection } = require('@discordjs/voice')
getVoiceConnection(interaction.guildId)
https://discord.js.org/docs/packages/voice/0.14.0/getVoiceConnection:Function
I'm just a hobbyist so could 1000% be wrong. the voice documentation is quite confusing and very limited compared to everything else, so I don't blame you for not catching onto it.35 replies
DIAdiscord.js - Imagine an app
•Created by Heph on 7/25/2023 in #djs-questions
New Bot Dev Struggles... Any Tips?
Right, sorry I should have went there
7 replies
DIAdiscord.js - Imagine an app
•Created by Heph on 7/25/2023 in #djs-questions
New Bot Dev Struggles... Any Tips?
No, people joining the bot's support server to tell me about bugs rather than just kicking the bot and giving up. If people want to kick, it's entirely their choice... just hate the idea they are kicking because the bot isnt working right when it's just one simple message away to fix it
98.765% of all issues are simple typos that take less than 30 seconds to fix. Just need to know about them
7 replies
DIAdiscord.js - Imagine an app
•Created by Heph on 7/25/2023 in #djs-questions
New Bot Dev Struggles... Any Tips?
I mean it's not exactly a Discord.js issue just a Discord developer in general, sorry if this falls outside the scope of aid that can be provided here
7 replies