Can not get user name in text?

Works great but does not show user name? What am i doing wrong?

const Discord = require('discord.js');
const client = new Discord.Client();


const PREFIX = '!';

var version = '1.0.1';

client.on('ready', () =>{
    console.log('This bot is online!')
})

client.on('guildMemberAdd', member =>{

    const channel = member.guild.channels.find(channel => channel.name === "welcome");
    if(!channel) return;
     
    channel.send('Welcome to the PARTY!, ${member},  At lease say Hi!')
});

client.on('message', message=>{

    let args = message.content.substring(PREFIX.length).split(" ");

    switch(args[0]){
        case 'play':

        break;
    }
});

MOD EDIT: formatting

nvm, swap your ' to `

channel.send(`Welcome to the PARTY!, ${member},  At lease say Hi!`)

string interpolation only works in strings that start and end with `

1 Like

You are a awesome person! Thx you for taking the time to help me you so made my day! I hope your day is as awesome as you made mine.

3 Likes