Ikke
Ikke
DIAdiscord.js - Imagine an app
Created by Ikke on 7/18/2024 in #djs-questions
Using Slash Command to send a message in a different chat and I want to capture the response
Hey I have this code that once a process is finished I'll notify the result in a different channel and I want to collect the first response of this other channel to continue to another step. How to await for the response and store the data?
if (notify) {
client.channels.fetch(cat.channel).then(channel => {
channel.send({
content: `:megaphone: **New update!**\n\n${cat.emoji} [${cat.name}] ${map.author} - ${map.code} - ${status.description}\n${map.picture}`
})
});
}
if (notify) {
client.channels.fetch(cat.channel).then(channel => {
channel.send({
content: `:megaphone: **New update!**\n\n${cat.emoji} [${cat.name}] ${map.author} - ${map.code} - ${status.description}\n${map.picture}`
})
});
}
9 replies