diff --git a/lib/discord/commands/unregister.js b/lib/discord/commands/unregister.js index 8ebc1ac..9381610 100644 --- a/lib/discord/commands/unregister.js +++ b/lib/discord/commands/unregister.js @@ -1,18 +1,18 @@ -const { SlashCommandBuilder } = require("discord.js"); -const { UnregisterUserService } = require("../../services"); - -class UnregisterCommand { - async execute(interaction) { - const unregisterUserService = new UnregisterUserService(); - const data = await unregisterUserService.execute(interaction.user.id); - interaction.reply(data.message); - } -} - -module.exports = { - data: new SlashCommandBuilder().setName("unregister").setDescription("..."), - async execute(interaction) { - const unregisterCommand = new UnregisterCommand(); - await unregisterCommand.execute(interaction); - }, -}; +const { SlashCommandBuilder } = require("discord.js"); +const { UnregisterUserService } = require("../../services"); + +class UnregisterCommand { + async execute(interaction) { + const unregisterUserService = new UnregisterUserService(); + const data = await unregisterUserService.execute(interaction.user.id); + interaction.reply(data.message); + } +} + +module.exports = { + data: new SlashCommandBuilder().setName("unregister").setDescription("Unregister from a course."), + async execute(interaction) { + const unregisterCommand = new UnregisterCommand(); + await unregisterCommand.execute(interaction); + }, +};