From fe36aab28bba1278a53e4e6757d6eface87ebc12 Mon Sep 17 00:00:00 2001 From: Naiyar <137700126+imnaiyar@users.noreply.github.com> Date: Sun, 19 Jan 2025 14:53:46 +0530 Subject: [PATCH] chore: use named export --- packages/discord.js/src/client/actions/InteractionCreate.js | 2 +- packages/discord.js/src/index.js | 3 ++- .../src/structures/PrimaryEntryPointCommandInteraction.js | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/discord.js/src/client/actions/InteractionCreate.js b/packages/discord.js/src/client/actions/InteractionCreate.js index 4e8588d09132..06ce44815ded 100644 --- a/packages/discord.js/src/client/actions/InteractionCreate.js +++ b/packages/discord.js/src/client/actions/InteractionCreate.js @@ -9,7 +9,7 @@ const { ChatInputCommandInteraction } = require('../../structures/ChatInputComma const { MentionableSelectMenuInteraction } = require('../../structures/MentionableSelectMenuInteraction'); const { MessageContextMenuCommandInteraction } = require('../../structures/MessageContextMenuCommandInteraction'); const { ModalSubmitInteraction } = require('../../structures/ModalSubmitInteraction'); -const PrimaryEntryPointCommandInteraction = require('../../structures/PrimaryEntryPointCommandInteraction'); +const { PrimaryEntryPointCommandInteraction } = require('../../structures/PrimaryEntryPointCommandInteraction'); const { RoleSelectMenuInteraction } = require('../../structures/RoleSelectMenuInteraction'); const { StringSelectMenuInteraction } = require('../../structures/StringSelectMenuInteraction'); const { UserContextMenuCommandInteraction } = require('../../structures/UserContextMenuCommandInteraction'); diff --git a/packages/discord.js/src/index.js b/packages/discord.js/src/index.js index b38e942e6bbf..f06af04f3d2a 100644 --- a/packages/discord.js/src/index.js +++ b/packages/discord.js/src/index.js @@ -191,7 +191,8 @@ exports.PartialGroupDMChannel = require('./structures/PartialGroupDMChannel').Pa exports.PermissionOverwrites = require('./structures/PermissionOverwrites').PermissionOverwrites; exports.Poll = require('./structures/Poll').Poll; exports.PollAnswer = require('./structures/PollAnswer').PollAnswer; -exports.PrimaryEntryPointCommandInteraction = require('./structures/PrimaryEntryPointCommandInteraction'); +exports.PrimaryEntryPointCommandInteraction = + require('./structures/PrimaryEntryPointCommandInteraction').PrimaryEntryPointCommandInteraction; exports.Presence = require('./structures/Presence').Presence; exports.ReactionCollector = require('./structures/ReactionCollector').ReactionCollector; exports.ReactionEmoji = require('./structures/ReactionEmoji').ReactionEmoji; diff --git a/packages/discord.js/src/structures/PrimaryEntryPointCommandInteraction.js b/packages/discord.js/src/structures/PrimaryEntryPointCommandInteraction.js index cfca7cdbcebc..229c4c56d22d 100644 --- a/packages/discord.js/src/structures/PrimaryEntryPointCommandInteraction.js +++ b/packages/discord.js/src/structures/PrimaryEntryPointCommandInteraction.js @@ -1,10 +1,10 @@ 'use strict'; -const CommandInteraction = require('./CommandInteraction'); +const { CommandInteraction } = require('./CommandInteraction'); /** * Represents a primary entry point command interaction. * @extends {CommandInteraction} */ class PrimaryEntryPointCommandInteraction extends CommandInteraction {} -module.exports = PrimaryEntryPointCommandInteraction; +exports.PrimaryEntryPointCommandInteraction = PrimaryEntryPointCommandInteraction;