From 3f6c52507533a6a678d83c4e7dd4230bd9eab937 Mon Sep 17 00:00:00 2001 From: Akrasia Date: Thu, 22 Apr 2021 08:29:19 +0000 Subject: [PATCH] Fixing Ships --- commands/fun/ships.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/fun/ships.js b/commands/fun/ships.js index 020f94e..206d1c8 100644 --- a/commands/fun/ships.js +++ b/commands/fun/ships.js @@ -10,8 +10,8 @@ module.exports = { }, async execute(message, msg, args, cmd, prefix, mention, client) { - const start = message.mentions.members.first() - const end = message.mentions.members.map(m => m.user.username).splice(1) + const start = message.mentions.members.first().user.username || args[0]; + const end = message.mentions.members.map(m => m.user.username).splice(1) || args[1]; if (!start && !end || !start || !end) return message.channel.send(this.help); let finalName = `${start.slice(0, Math.floor(start.length / 2))+end.slice(Math.floor(end.length / 2))}` const Embed = new Discord.MessageEmbed()