const { Command } = require('discord-akairo'); class fartpissCommand extends Command { constructor() { super('fartpiss', { aliases: ['fartpiss'], category: 'reserved', args: [ { id: 'member', type: 'member', match: 'rest' } ], description: { content: 'fartpiss', usage: '', examples: [''] } }); } async exec(message, args) { if (message.guild.id != '240843640375607296') { return; } if (!args.member) { return message.guild.members.resolve(message.author.id).setNickname('fart piss') .then(() => message.channel.send('sucessfully fart pissed on you <:youngtroll:488559163832795136>')) .catch(() => message.channel.send('Sorry i could not fart piss on you :(')); } else { return args.member.setNickname('fart piss') .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.user.username} :(`)); } } } module.exports = fartpissCommand;