Mattéo
Mattéo
Explore posts from servers
PPrisma
Created by Mattéo on 6/18/2024 in #help-and-questions
Multiple relation between models
Thank you @moosthuizen, I’m going to read this
6 replies
DIAdiscord.js - Imagine an app
Created by Mattéo on 7/21/2023 in #djs-questions
How to get last messages from a text channel ?
Thank you guys
14 replies
DIAdiscord.js - Imagine an app
Created by Mattéo on 7/21/2023 in #djs-questions
How to get last messages from a text channel ?
🙏
14 replies
DIAdiscord.js - Imagine an app
Created by Mattéo on 7/21/2023 in #djs-questions
How to get last messages from a text channel ?
There is a solution maybe, I have to get the last part of the messages map like:
const messages = await <GuildText>.messages.fetch();

const lastMessages = messages.slice(100); // To get the last 100 messages
const messages = await <GuildText>.messages.fetch();

const lastMessages = messages.slice(100); // To get the last 100 messages
14 replies
DIAdiscord.js - Imagine an app
Created by Mattéo on 7/21/2023 in #djs-questions
How to get last messages from a text channel ?
Thanks. So there is no way to get the newest messages first ?
14 replies