it's me...
DIAdiscord.js - Imagine an app
•Created by it's me... on 5/3/2024 in #djs-questions
need help
I realize that my code may be unreadable, but
LFG-Message.js
im creating VC
then creating Embed
then sent embed in message.channel
then i save messageId and other event info in DB
LFG-Voice.js
Then onVoiceStateUpdate im find event info in DB by voiceChannel.id
Then find other info
Then create new emded
Then fetch message and update it with eventObejct (new Embed)
11 replies
DIAdiscord.js - Imagine an app
•Created by it's me... on 5/3/2024 in #djs-questions
need help
in first attempt all works fine, because i wait bot message before joining in VC, and bot successfully update embed
but in second attempt i join in VC right before bot message, then he tries to update message, but message doesent exist yet
11 replies
DIAdiscord.js - Imagine an app
•Created by it's me... on 5/3/2024 in #djs-questions
need help
No, the only problem is that the bot is trying to update a non-existent message (because it takes half a second longer than the channel to create it).
Embed is created successfully and sent to the right channel, when I go to the voice channel the bot tries to update the Embed with my information.
Here is a video demo of the error
11 replies
DIAdiscord.js - Imagine an app
•Created by it's me... on 5/3/2024 in #djs-questions
need help
The only solution I have found is to create a closed channel and then open it ( after the bot sends embed )
But I couldn't do it
11 replies
DIAdiscord.js - Imagine an app
•Created by it's me... on 5/3/2024 in #djs-questions
need help
Screenshot from LFG-Message.js Line 83-84
11 replies
DIAdiscord.js - Imagine an app
•Created by it's me... on 5/3/2024 in #djs-questions
need help
11 replies
DIAdiscord.js - Imagine an app
•Created by it's me... on 5/3/2024 in #djs-questions
need help
im aslo trying to create closed channel, then update permissions
it successfully console.log ids but i still get error
LFG-Message.js
https://srcshare.io/6634b987c56cf36b82477a1a
Error
11 replies
DIAdiscord.js - Imagine an app
•Created by it's me... on 5/3/2024 in #djs-questions
need help
[email protected]
node v20.11.1
11 replies
DIAdiscord.js - Imagine an app
•Created by it's me... on 5/3/2024 in #djs-questions
need help
11 replies