🎨 code smells fixed

This commit is contained in:
Axel Olausson Holtenäs 2022-04-10 22:12:30 +02:00
parent d73a9c10f8
commit 47b9d4f85c
No known key found for this signature in database
GPG key ID: 9347A5E873995701

View file

@ -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