Skip to content

Commit d544e5e

Browse files
committed
🐛 Linkuser command fix
1 parent bb51c7c commit d544e5e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

commands/moderator/linkuser.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ module.exports = {
1919
"You don't have enough priviliges to run this command!"
2020
);
2121
}
22+
if (!args[0]) return message.channel.send("No Discord identifier!");
23+
if (!args[1]) return message.channel.send("No Factorio identifier!");
2224
const discordID = message.mentions.users.first() ? (message.mentions.users.first()).id : args[0];
2325
args.shift();
2426
let db = await DatabaseConnection.findOneDB("otherData", "linkedPlayers", { discordID: discordID });

0 commit comments

Comments
 (0)