From 47b9d4f85cfc5531788e30d3ae3f9ebed9875045 Mon Sep 17 00:00:00 2001 From: Vermium Sifell Date: Sun, 10 Apr 2022 22:12:30 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20code=20smells=20fixed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/commands/admin/counters/index.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/commands/admin/counters/index.ts b/src/commands/admin/counters/index.ts index ea02b38..24ab5e2 100644 --- a/src/commands/admin/counters/index.ts +++ b/src/commands/admin/counters/index.ts @@ -1,12 +1,12 @@ // Dependencies -import { CommandInteraction } from "discord.js"; +import { CommandInteraction } from 'discord.js'; // Handlers -import logger from "../../../handlers/logger"; +import logger from '../../../handlers/logger'; // Modules -import add from "./modules/add"; -import remove from "./modules/remove"; +import add from './modules/add'; +import remove from './modules/remove'; // Function export default async (interaction: CommandInteraction) => { @@ -14,15 +14,15 @@ export default async (interaction: CommandInteraction) => { const { options, guild, user, commandName } = interaction; // Module - Add - if (options?.getSubcommand() === "add") { + if (options?.getSubcommand() === 'add') { // Execute Module - Add - return await add(interaction); + return add(interaction); } // Module - Remove - else if (options?.getSubcommand() === "remove") { + else if (options?.getSubcommand() === 'remove') { // Execute Module - Remove - return await remove(interaction); + return remove(interaction); } // Log debug message