Added eslintrc config and updated all files to it

This commit is contained in:
2023-11-22 23:50:21 +01:00
parent 10771fd04e
commit 3d4fc1fccb
70 changed files with 1276 additions and 1234 deletions

View File

@@ -1,25 +1,25 @@
const { SlashCommandBuilder, PermissionFlagsBits } = require('discord.js');
const { SlashCommandBuilder, PermissionFlagsBits } = require("discord.js")
module.exports = {
name: 'dev-info',
description: 'Test command for the bot.',
type: 'slash',
name: "dev-info",
description: "Test command for the bot.",
type: "slash",
data: new SlashCommandBuilder()
.setName('dev-info')
.setDescription('Test command for the bot.')
.setName("dev-info")
.setDescription("Test command for the bot.")
.addStringOption(option =>
option
.setName('test')
.setDescription('Test option.'))
.setName("test")
.setDescription("Test option."))
.addStringOption(option =>
option
.setName('test2')
.setDescription('Test option.'))
.setName("test2")
.setDescription("Test option."))
.addStringOption(option =>
option
.setName('test3')
.setDescription('Test option.'))
.setName("test3")
.setDescription("Test option."))
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
.setDMPermission(false),
@@ -27,17 +27,17 @@ module.exports = {
async execute(interaction) {
const test = interaction.options.getString('test');
const test2 = interaction.options.getString('test2');
const test3 = interaction.options.getString('test3');
const test = interaction.options.getString("test")
const test2 = interaction.options.getString("test2")
const test3 = interaction.options.getString("test3")
const message = await interaction.channel.messages.fetch(test);
const embed = message.embeds[0];
const fields = embed.fields;
const field1 = fields[0];
const message = await interaction.channel.messages.fetch(test)
const embed = message.embeds[0]
const fields = embed.fields
const field1 = fields[0]
console.log(field1.value);
console.log(field1.value)
await interaction.reply({ content: 'Test command.', ephemeral: true });
await interaction.reply({ content: "Test command.", ephemeral: true })
}
};
}