Skip to content
Advertisement

DiscordJS ticketinfo TypeError: results.transcripts is not iterable

I’m making a ticketinfo command that get’s information about a ticket that’s in my database.

I’m trying to catch the information from the database and put in into my embed. The embed is being send to the user that runs that command.

It seems to not work. Why isnt it working?

My Code:

JavaScript

Error:

JavaScript

Advertisement

Answer

It seems, that result.transcripts either does not exist, or is not an array or an iterator. You should check, what the findOne function actually returns.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement