I'm making a DM command that asks for input then sends that input to another channel. Right now it's not logging anything on the console after it asks for the content. What am I missing?
const { SlashCommandBuilder } = require('@discordjs/builders');
module.exports = {
data: new SlashCommandBuilder()
.setName('journal')
.setDescription('Write a journal entry!'),
async execute(client, interaction) {
// CHANNELS
const outChannel = client.channels.cache.get('[CHANNEL_ID]');
const inChannel = await interaction.user.createDM();
// COLLECT MESSAGE
await interaction.reply('Okay, what would you like to say?');
const filter = (m) => m.author.id === interaction.user.id;
const contentCollector = inChannel.createMessageCollector(filter, { max: 1, time: 30000 });
contentCollector.on("collect", (m) => {
console.log(`Collected ${m.content}`);
});
// SEND REPLY
},
};