🎨 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 // Dependencies
import { CommandInteraction } from "discord.js"; import { CommandInteraction } from 'discord.js';
// Handlers // Handlers
import logger from "../../../handlers/logger"; import logger from '../../../handlers/logger';
// Modules // Modules
import add from "./modules/add"; import add from './modules/add';
import remove from "./modules/remove"; import remove from './modules/remove';
// Function // Function
export default async (interaction: CommandInteraction) => { export default async (interaction: CommandInteraction) => {
@ -14,15 +14,15 @@ export default async (interaction: CommandInteraction) => {
const { options, guild, user, commandName } = interaction; const { options, guild, user, commandName } = interaction;
// Module - Add // Module - Add
if (options?.getSubcommand() === "add") { if (options?.getSubcommand() === 'add') {
// Execute Module - Add // Execute Module - Add
return await add(interaction); return add(interaction);
} }
// Module - Remove // Module - Remove
else if (options?.getSubcommand() === "remove") { else if (options?.getSubcommand() === 'remove') {
// Execute Module - Remove // Execute Module - Remove
return await remove(interaction); return remove(interaction);
} }
// Log debug message // Log debug message