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, userMention } = require('discord.js');
const { color } = require('../config/options.json');
const { SlashCommandBuilder, PermissionFlagsBits, userMention } = require("discord.js")
const { color } = require("../config/options.json")
const { waitinglistSchema } = require("../schemas/waitinglistSchema.js")
module.exports = {
name: 'remove',
description: 'Remove a person on the waiting list.',
type: 'slash',
name: "remove",
description: "Remove a person on the waiting list.",
type: "slash",
data: new SlashCommandBuilder()
.setName('remove')
.setDescription('Remove a person on the waiting list.')
.setName("remove")
.setDescription("Remove a person on the waiting list.")
.addUserOption(option =>
option
.setName('user')
.setDescription('The user to remove.')
.setName("user")
.setDescription("The user to remove.")
.setRequired(true)
)
.addStringOption(option =>
option
.setName('reason')
.setDescription('The reason for removing the user.')
.setName("reason")
.setDescription("The reason for removing the user.")
.setRequired(false)
)
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
@@ -31,10 +31,10 @@ module.exports = {
interaction.deferReply()
const user = interaction.options.getUser('user');
const reason = interaction.options.getString('reason') ?? "No reason provided."
const user = interaction.options.getUser("user")
const reason = interaction.options.getString("reason") ?? "No reason provided."
const mod = interaction.user
const embedColor = Number(color.replace('#', '0x'))
const embedColor = Number(color.replace("#", "0x"))
const waitinglist = await waitinglistSchema.findOne({ UserID: user.id })