mswgen :
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?
Umair Khan :
You need to provide proper function for it to work.
I think, You are kind of providing empty function so no error, also no working as function body is empty.
Here is example collection.find(u => u.discriminator === '1000');
Resource https://discordjs.guide/additional-info/collections.html#array-like-methods
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=293659&siteId=1