riskiscool
riskiscool
SIASapphire - Imagine a framework
Created by riskiscool on 6/13/2023 in #discordjs-support
Message Collector Error
I'm creating a message collector like this - however after it runs and collects m.content and sets it to username, which I can log into the console just fine - I receive the following error preventing further code run. Also getting a shit ton of type errors. OG Code
const username_collector = message.channel.createMessageCollector({ filter, max: 1, time: 60000 })
username_collector.on('collect', async (m) => {
if (m.content.toLowerCase() === 'cancel') return username_collector.stop('user cancelled')
username = m.content
username_collector.stop('username collected.')
})
const username_collector = message.channel.createMessageCollector({ filter, max: 1, time: 60000 })
username_collector.on('collect', async (m) => {
if (m.content.toLowerCase() === 'cancel') return username_collector.stop('user cancelled')
username = m.content
username_collector.stop('username collected.')
})
Error
Error (1)
Received one or more errors

input[0]
| CombinedPropertyError (1)
| Received one or more errors
|
| input.value
| | ValidationError > s.string
| | Expected a string primitive
| |
| | Received:
| | | undefined
Error (1)
Received one or more errors

input[0]
| CombinedPropertyError (1)
| Received one or more errors
|
| input.value
| | ValidationError > s.string
| | Expected a string primitive
| |
| | Received:
| | | undefined
30 replies