I am trying to find a GuildMember by their nickname. Their nickname is set to their Roblox name when they join the server and I have set a webhook up to send a message in a channel containing their username and some other information, and it splits that message up so that the username is by itself. I am using a guild.members.fetch function with an await in front of it, but it keeps timing out and giving the error: Members didn't arrive in time.
Code
let msg = message.content.toLowerCase();
if (message.channel.id === '795814242397585418' && message.author.bot && message.author.id != client.user.id) {
//client.channels.cache.get('795814242397585418').send('Someone bought a product');
let splitMsg = msg.split(' bought ');
let customer = await message.guild.members.fetch(m => m.nickname === splitMsg[0]);
customer.send('You bought ', splitMsg[2]);
};
It is inside a client.on('message', async message => {}) function.