Don't specify global pfp when there's only one
All checks were successful
CI / CI (push) Successful in 22s
All checks were successful
CI / CI (push) Successful in 22s
This commit is contained in:
parent
af4c42009c
commit
cafcc007c1
1 changed files with 2 additions and 2 deletions
|
|
@ -16,9 +16,9 @@ module.exports = {
|
|||
let user = message.guild.members.cache.get(info);
|
||||
let guildPfp = user.avatarURL({format: 'png', dynamic: true, size: 4096});
|
||||
let globalPfp = user.user.avatarURL({format: 'png', dynamic: true, size: 4096});
|
||||
let sendText = `Global pfp:\n${globalPfp}`;
|
||||
let sendText = `${globalPfp}`;
|
||||
if(guildPfp != null){
|
||||
sendText = `${sendText}\nGuild pfp:\n${guildPfp}`;
|
||||
sendText = `Global pfp${sendText}\nGuild pfp:\n${guildPfp}`;
|
||||
}
|
||||
|
||||
message.channel.send(sendText)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue