Refactor codebase to use ES modules, add logger utility, and update package dependencies
This commit is contained in:
+3
-5
@@ -6,12 +6,10 @@
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
|
||||
const { SlashCommandBuilder, EmbedBuilder } = require('discord.js');
|
||||
import { SlashCommandBuilder, EmbedBuilder } from 'discord.js';
|
||||
|
||||
module.exports = {
|
||||
data: new SlashCommandBuilder()
|
||||
.setName('help')
|
||||
.setDescription('Lists all available commands'),
|
||||
export default {
|
||||
data: new SlashCommandBuilder().setName('help').setDescription('Lists all available commands'),
|
||||
async execute(interaction) {
|
||||
const { commands } = interaction.client;
|
||||
const helpEmbed = new EmbedBuilder()
|
||||
|
||||
Reference in New Issue
Block a user