fix not using dict error
This commit is contained in:
2 files changed
+1
-2
No files matched your search
+1
-1
@@ -22,7 +22,7 @@ module.exports = {
|
|||||||
return interaction.send({ content: `You are not allowed to use the bot in this channel.` });
|
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);
|
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)
|
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)}))
|
.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)});
|
.catch(err => {client.log(err)});
|
||||||
|
|||||||
@@ -29,7 +29,6 @@ class LinesPoliceCadBot extends Client {
|
|||||||
this.Ready = false;
|
this.Ready = false;
|
||||||
|
|
||||||
this.ws.on("INTERACTION_CREATE", async (interaction) => {
|
this.ws.on("INTERACTION_CREATE", async (interaction) => {
|
||||||
const start = new Date().getTime();
|
|
||||||
if (interaction.type!=3) {
|
if (interaction.type!=3) {
|
||||||
client.log("Interaction")
|
client.log("Interaction")
|
||||||
let GuildDB = await this.GetGuild(interaction.guild_id);
|
let GuildDB = await this.GetGuild(interaction.guild_id);
|
||||||
|
|||||||
Reference in new issue
Block a user