TypeError: message.channel.fetchMessages is not a function code example
Example: message.channel.fetchMessages is not a function
// what you are trying to write was taken out of discord.js v12
message.channel.messages.fetch()
// what you are trying to write was taken out of discord.js v12
message.channel.messages.fetch()