Updated eslint
This commit is contained in:
@@ -94,7 +94,7 @@ export default async function guildMember(interaction: ChatInputCommandInteracti
|
||||
}
|
||||
|
||||
const guildName = guild.name
|
||||
const guildTag = " [" + guild.tag + "]" ?? ""
|
||||
const guildTag = guild.tag ? " [" + guild.tag + "]" : ""
|
||||
|
||||
const guildMembers = guild.members
|
||||
const guildMember = guildMembers.find(member => member.uuid === uuid)
|
||||
|
||||
@@ -49,6 +49,7 @@ export = {
|
||||
|
||||
try {
|
||||
user = await interaction.client.users.fetch(userid)
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
} catch (error) {
|
||||
await interaction.editReply({
|
||||
embeds: [{
|
||||
|
||||
@@ -125,6 +125,7 @@ export = {
|
||||
timestamp: new Date().toISOString()
|
||||
}]
|
||||
})
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
} catch (err) {
|
||||
console.log(
|
||||
color("Error while trying to update waiting list.", "red")
|
||||
|
||||
@@ -48,6 +48,7 @@ export = {
|
||||
color: embedColor
|
||||
}]
|
||||
})
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
} catch (error) {
|
||||
await interaction.editReply("Please enable your DMs.")
|
||||
return
|
||||
|
||||
@@ -44,6 +44,7 @@ export = {
|
||||
color: embedColor
|
||||
}]
|
||||
})
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
} catch (error) {
|
||||
await interaction.reply({
|
||||
content: "Please enable your DMs.",
|
||||
|
||||
@@ -66,6 +66,7 @@ export = {
|
||||
color: embedColor
|
||||
}]
|
||||
})
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
} catch (error) {
|
||||
await interaction.editReply("Please enable your DMs.")
|
||||
return
|
||||
|
||||
@@ -41,6 +41,7 @@ export = {
|
||||
let applicant: GuildMember | null
|
||||
try {
|
||||
applicant = await guild.members.fetch(applicantId)
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
} catch (error) {
|
||||
applicant = null
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@ export = {
|
||||
|
||||
try {
|
||||
subcommand = interaction.options.getSubcommand()
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
} catch (e) {
|
||||
subcommand = null
|
||||
}
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
/* eslint-disable no-unused-vars */
|
||||
import { AutocompleteInteraction } from "discord.js"
|
||||
import { ExtendedClient } from "utils/Client"
|
||||
|
||||
export default interface IAutocomplete {
|
||||
name: string
|
||||
description: string
|
||||
execute: (arg: { interaction: AutocompleteInteraction, client :ExtendedClient }) => Promise<void>
|
||||
execute: (arg: { interaction: AutocompleteInteraction, client: ExtendedClient }) => Promise<void>
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* eslint-disable no-unused-vars */
|
||||
import { ButtonInteraction } from "discord.js"
|
||||
import { ExtendedClient } from "utils/Client"
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* eslint-disable no-unused-vars */
|
||||
import { ChatInputCommandInteraction, SlashCommandBuilder } from "discord.js"
|
||||
import { ExtendedClient as Client } from "utils/Client"
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* eslint-disable no-unused-vars */
|
||||
import { ContextMenuCommandInteraction, ContextMenuCommandBuilder } from "discord.js"
|
||||
import { ExtendedClient } from "utils/Client"
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* eslint-disable no-unused-vars */
|
||||
import { ClientEvents } from "discord.js"
|
||||
|
||||
export default interface IEvent {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* eslint-disable no-unused-vars */
|
||||
import { ModalSubmitInteraction } from "discord.js"
|
||||
import { ExtendedClient } from "utils/Client"
|
||||
|
||||
|
||||
@@ -30,6 +30,7 @@ async function getUUID(ign: string): Promise<string | null> {
|
||||
try {
|
||||
const req: Profile = await fetch(mojang + ign)
|
||||
return req.data.id
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
} catch (err) {
|
||||
return null
|
||||
}
|
||||
@@ -39,6 +40,7 @@ async function getIGN(uuid: string): Promise<string | null> {
|
||||
try {
|
||||
const req: Profile2 = await fetch(mojanguuid + uuid)
|
||||
return req.data.name
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
} catch (err) {
|
||||
return null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user