Dosent ping this time (fixed)

This commit is contained in:
Supositware 2019-03-22 23:41:06 +01:00
parent 6e8b923713
commit 668a1b6966

View file

@ -23,12 +23,13 @@ class fartpissCommand extends Command {
async exec(message, args) { async exec(message, args) {
if (!args.member) { if (!args.member) {
message.guild.members.get(message.author.id).setNickname('fart piss'); message.guild.members.get(message.author.id).setNickname('fart piss')
return message.channel.send('fart piss <:youngtroll:488559163832795136>'); .then(() => message.channel.send('sucessfully fart pissed on you <:youngtroll:488559163832795136'))
.catch(() => message.channel.send('Sorry i could not fart piss on you :('));
} }
args.member.setNickname('fart piss') args.member.setNickname('fart piss')
.then(() => message.channel.send(`sucessfully fart pissed on ${args.member.username} <:youngtroll:488559163832795136>`)) .then(() => message.channel.send(`sucessfully fart pissed on ${args.member.user.username} <:youngtroll:488559163832795136>`))
.catch(() => message.channel.send(`Sorry i could not fart piss on ${args.member.username} :(`)); .catch(() => message.channel.send(`Sorry i could not fart piss on ${args.member.user.username} :(`));
} }
} }