There a way to get all message of a channel?

Without using a messages.fetch({limit: 100}) loop
13 Replies
d.js toolkit
d.js toolkit5mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
Unknown User
Unknown User5mo ago
Message Not Public
Sign In & Join Server To View
orion
orionOP5mo ago
i see
Unknown User
Unknown User5mo ago
Message Not Public
Sign In & Join Server To View
orion
orionOP5mo ago
i'm trying to do a AI memory, so i thought to get all message of a specif topic and send to AI but i can save the question and AI answer before send to user
Unknown User
Unknown User5mo ago
Message Not Public
Sign In & Join Server To View
orion
orionOP5mo ago
:( do you know a better solution?
Unknown User
Unknown User5mo ago
Message Not Public
Sign In & Join Server To View
orion
orionOP5mo ago
noo, i don't want to teach the AI, i'm using the gemini api, i just need to send the history(questions and answer previous) to api then the AI will get a "memory", so the AI will be able to answer based on the previous questions and when the topic is deleted, all the saved history will be deleted too
Unknown User
Unknown User5mo ago
Message Not Public
Sign In & Join Server To View
orion
orionOP5mo ago
, i thought save the new messages after the topic be created it's really better than get all topic messages at every request
Unknown User
Unknown User5mo ago
Message Not Public
Sign In & Join Server To View
orion
orionOP5mo ago
i will think more about a solution but thanks for the help ❤️
Want results from more Discord servers?
Add your server