Fix Private Mode Usernames #19
1 changed files with 3 additions and 3 deletions
|
@ -315,12 +315,12 @@ function sendLBC(message, tipper, recipient, amount, privacyFlag) {
|
||||||
let msgtail = `
|
let msgtail = `
|
||||||
DM me with \`${message.content.split(' ', 1)[0]}\` for command specific instructions or with \`!tips\` for all available commands`;
|
DM me with \`${message.content.split(' ', 1)[0]}\` for command specific instructions or with \`!tips\` for all available commands`;
|
||||||
if (privacyFlag) {
|
if (privacyFlag) {
|
||||||
let authmsg = `You have just privately tipped <@${recipient}> ${amount} LBC.
|
let usr = message.guild.members.find('id', recipient).user;
|
||||||
|
let authmsg = `You have just privately tipped @${usr.username}#${usr.tag} ${amount} LBC.
|
||||||
${tx}${msgtail}`;
|
${tx}${msgtail}`;
|
||||||
message.author.send(authmsg);
|
message.author.send(authmsg);
|
||||||
if (message.author.id !== message.mentions.users.first().id) {
|
if (message.author.id !== message.mentions.users.first().id) {
|
||||||
let usr = message.guild.members.find('id', recipient).user;
|
let recipientmsg = `You have just been privately tipped ${amount} LBC by @${message.author.username}#${message.author.tag}.
|
||||||
let recipientmsg = `You have just been privately tipped ${amount} LBC by <@${tipper}>.
|
|
||||||
${tx}${msgtail}`;
|
${tx}${msgtail}`;
|
||||||
usr.send(recipientmsg);
|
usr.send(recipientmsg);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue