This commit is contained in:
SowinskiBraeden committed 2022-08-06 13:14:57 -07:00
1 parent 6245826c6f
commit 418645ebd8
5 files changed
+4 -5

No files matched your search

@@ -1,7 +1,7 @@
const { MessageEmbed } = require('discord.js');
module.exports = {
name: "connectAccount",
name: "connect_account",
description: "Connect your Discord Account to the Lines Police CAD Database",
usage: "",
permissions: {
@@ -1,7 +1,7 @@
const { MessageEmbed } = require('discord.js');
module.exports = {
name: "logout",
name: "disconnect_account",
description: "Disconnect your Discord account from the Lines Police CAD Database",
usage: "",
permissions: {
-1
View File
@@ -8,7 +8,6 @@ module.exports = {
channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"],
member: [],
},
aliases: [],
SlashCommand: {
options: [],
/**
+1 -2
View File
@@ -28,12 +28,10 @@ class LinesPoliceCadBot extends Client {
this.Ready = false;
this.ws.on("INTERACTION_CREATE", async (interaction) => {
client.log("Interaction")
let GuildDB = await this.GetGuild(interaction.guild_id);
if (interaction.type==3) return;
const command = interaction.data.name.toLowerCase();
const args = interaction.data.options;
@@ -55,6 +53,7 @@ class LinesPoliceCadBot extends Client {
});
};
let cmd = client.commands.get(command);
client.log("Interaction - "+cmd.name);
if (cmd.SlashCommand && cmd.SlashCommand.run)
cmd.SlashCommand.run(this, interaction, args, { GuildDB });
});
+1
View File
@@ -29,6 +29,7 @@ module.exports = (client, guild) => {
await GuildAPI.commands.post({ data: dataStuff });
} catch (e) {
client.log('Error: API missing permissions');
console.log(e)
}
});
});