sapphire-support
Root Question Message
message.edit is not a function
. I am following the direct steps from the documentation and it is not working. Why and how do I fix this issue? let message: any;
if(channel?.isTextBased() ) {
message = channel.send({ embeds: [ playerCountEmbedLoading() ] });
}
setInterval(() => {
if(channel?.isTextBased() ) {
return message.edit({ embeds: [ playerCountEmbed() ] })
}
}, 3000)
isTextChannel(channel) && !isStageChannel(channel)
C:\Users\paaxy\Documents\sploop-bot-entry-detection'\sploop-bot-entry-detection\dist\index.js:79
return message.edit({ embeds: [playerCountEmbed()] });
^
TypeError: message.edit is not a function
at Timeout._onTimeout (C:\Users\paaxy\Documents\sploop-bot-entry-detection'\sploop-bot-entry-detection\dist\index.js:79:32)
at listOnTimeout (node:internal/timers:569:17)
at process.processTimers (node:internal/timers:512:7)
Node.js v18.14.0