diff --git a/commands/account.js b/commands/account.js index ec519db..d748d31 100644 --- a/commands/account.js +++ b/commands/account.js @@ -22,7 +22,7 @@ module.exports = { return interaction.send({ content: `You are not allowed to use the bot in this channel.` }); } let user = await client.dbo.collection("users").findOne({"user.discord.id":interaction.member.user.id}).then(user => user); - if (user==null) return interaction.send(`You are not logged in.`); + if (user==null) return interaction.send({ content: `You are not logged in.` }); client.users.fetch(interaction.member.user.id) .then(duser => duser.send(`<@${interaction.member.user.id}> Logged in as **${user.user.username}** | **${user.user.email}**`).catch(err => {client.log(err)})) .catch(err => {client.log(err)}); diff --git a/structures/LinesPoliceCadBot.js b/structures/LinesPoliceCadBot.js index 094948d..4d0470f 100644 --- a/structures/LinesPoliceCadBot.js +++ b/structures/LinesPoliceCadBot.js @@ -29,7 +29,6 @@ class LinesPoliceCadBot extends Client { this.Ready = false; this.ws.on("INTERACTION_CREATE", async (interaction) => { - const start = new Date().getTime(); if (interaction.type!=3) { client.log("Interaction") let GuildDB = await this.GetGuild(interaction.guild_id);