🎨 code smells fixed
This commit is contained in:
parent
d73a9c10f8
commit
47b9d4f85c
1 changed files with 8 additions and 8 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue