I have this command that is supposed to only accept user inputs from me. I am trying to use this code but there is nothing in the console.
me = await client.users.fetch("< my id >")
mee = msg
mee.author = me
let filter = m => m.author.id === mee.author.id
msg.channel.awaitMessages(filter, { max: 1, time: 50000, errors:
['time'], })
.then(async (collected) => {
mesg = collected.first
console.log(mesg.content)
})
There's really no reason to be fetching a user if the only thing you need is their ID - which you're already using for the fetch itself.
What you're currently trying to do - overriding the author of an existing message - doesn't really make much sense.
Your filter can (likely) be simplified down to the following.
let filter = m => m.author.id === "<your id>"