diff --git a/commands/moderator/linkuser.js b/commands/moderator/linkuser.js index 68c5c93..9000bdd 100644 --- a/commands/moderator/linkuser.js +++ b/commands/moderator/linkuser.js @@ -19,6 +19,8 @@ module.exports = { "You don't have enough priviliges to run this command!" ); } + if (!args[0]) return message.channel.send("No Discord identifier!"); + if (!args[1]) return message.channel.send("No Factorio identifier!"); const discordID = message.mentions.users.first() ? (message.mentions.users.first()).id : args[0]; args.shift(); let db = await DatabaseConnection.findOneDB("otherData", "linkedPlayers", { discordID: discordID });