let webhook = await client.channels.cache.get(smchannel[i]).fetchWebhooks(); webhook = webhook.find(x => x.name === message.member.nickname ? message.member.nickname : message.author.username); webhook = await client.channels.cache.get(smchannel[i]).createWebhook('Chat Guy', { avatar: client.user.displayAvatarURL({ dynamic: true })}); await webhook.edit({ name: message.member.nickname ? message.member.nickname : message.author.username, avatar: message.author.displayAvatarURL({ dynamic: true })}) webhook.send( content ).catch(err => { }) } });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)