There a way to get all message of a channel?
Without using a messages.fetch({limit: 100}) loop
13 Replies
- 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 OPUnknown User•6mo ago
Message Not Public
Sign In & Join Server To View
i see
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
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•6mo ago
Message Not Public
Sign In & Join Server To View
:(
do you know a better solution?
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
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•6mo ago
Message Not Public
Sign In & Join Server To View
,
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•6mo ago
Message Not Public
Sign In & Join Server To View
i will think more about a solution
but thanks for the help ❤️