2019-11-26 21:22:24 +00:00
|
|
|
module.exports = (client, member) => {
|
|
|
|
const settings = client.getSettings(member.guild);
|
|
|
|
if (settings.welcomeEnabled !== "true") return;
|
2019-12-24 01:21:37 +00:00
|
|
|
|
2019-11-26 21:22:24 +00:00
|
|
|
const welcomeMessage = settings.welcomeMessage.replace("{{user}}", member.user.tag);
|
|
|
|
member.guild.channels.find(c => c.name === settings.welcomeChannel).send(welcomeMessage).catch(console.error);
|
|
|
|
};
|