7 lines
348 B
JavaScript
7 lines
348 B
JavaScript
module.exports = (client, member) => {
|
|
const settings = client.getSettings(member.guild);
|
|
if (settings.welcomeEnabled !== "true") return;
|
|
|
|
const welcomeMessage = settings.welcomeMessage.replace("{{user}}", member.user.tag);
|
|
member.guild.channels.find(c => c.name === settings.welcomeChannel).send(welcomeMessage).catch(console.error);
|
|
};
|