fix not using dict error

This commit is contained in:
SowinskiBraeden committed 2022-10-03 18:08:22 -07:00
1 parent deb5f90654
commit 93dfd8c6da
2 files changed
+1 -2

No files matched your search

+1 -1
View File
@@ -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)});
-1
View File
@@ -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);