Update guildMemberAdd.js

This commit is contained in:
ItzEmerald authored and GitHub committed 2021-03-31 01:21:34 +01:00
1 parent ba6ff8c342
commit 0827f55d43
1 file changed
+2 -1
+2 -1
View File
@@ -22,9 +22,10 @@ module.exports = async (bot, member) => {
member.roles.add(role).catch(console.error);
if (supportbot.SystemMessage_Type === "embed") {
const GuildAddMember = new Discord.MessageEmbed()
.setTitle(supportbot.Welcome_Title)
.setDescription(supportbot.WelcomeMessage.replace(/%member%/g, member.user.id).replace(/%guildname%/g, member.guild.name))
.setDescription(supportbot.WelcomeMessage.replace(/%member%/g, `<@!${member.user.id}>`).replace(/%guildname%/g, member.guild.name))
.setColor(supportbot.EmbedColour)
if (supportbot.SystemMessage_Icon === "BOT") {