The collection.find function doesn't work

Viewed 232

I'm programming a discord bot with discord.js library and when I try the following method

collection.find(async x => x.name === 'test')

it doesn't work but there's also no error. What can I do about this?

1 Answers
Related