const channelId = interaction.options.getChannel("channel").id
const receiveChannel = client.channels.cache.get(channelId);
const message = await receiveChannel.messages.fetch({ limit: 10 })
.then(messages=> console.log(messages))
.catch(console.error);