Skip to content

Commit

Permalink
🐛 Linkuser command fix
Browse files Browse the repository at this point in the history
  • Loading branch information
oof2win2 committed Feb 10, 2021
1 parent bb51c7c commit d544e5e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions commands/moderator/linkuser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down

0 comments on commit d544e5e

Please sign in to comment.