fixed the command

This commit is contained in:
Supositware 2019-03-21 21:46:40 +01:00
parent 091ca60365
commit 3cb0bc1d11

View file

@ -20,8 +20,12 @@ class fartpissCommand extends Command {
} }
async exec(message, args) { async exec(message, args) {
if (!args.member) {
message.guild.members.get(message.author.id).setNickname('fart pis');
return message.channel.send('fart piss <:youngtroll:488559163832795136>');
}
args.member.setNickname('fart pis'); args.member.setNickname('fart pis');
message.channel.send('fart piss <:youngtroll:488559163832795136>'); return message.channel.send('fart piss <:youngtroll:488559163832795136>');
} }
} }