#Fetch messages in a given text channel
2 messages · Page 1 of 1 (latest)
you can use <TextChannel>.lastMessage but i think that grabs the last message from cache so if its not cached you can do <TextChannel>.messages.fetch({ limit: 1 })
2 messages · Page 1 of 1 (latest)
• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.
you can use <TextChannel>.lastMessage but i think that grabs the last message from cache so if its not cached you can do <TextChannel>.messages.fetch({ limit: 1 })