@stelliajs/framework 1.5.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -29,7 +29,7 @@ export class StelliaUtils {
|
|
|
29
29
|
initializeCommands = async () => {
|
|
30
30
|
const commands = this.client.managers.commands?.getAll().values();
|
|
31
31
|
const contextMenus = this.client.managers.contextMenus?.getAll().values();
|
|
32
|
-
const applicationCommands = [...(commands || []), ...(contextMenus || [])].map((item) => item.data);
|
|
32
|
+
const applicationCommands = [...(commands || []), ...(contextMenus || [])].map((item) => item.data.command);
|
|
33
33
|
if (this.client.isReady()) {
|
|
34
34
|
const rest = new REST({ version: DISCORD_API_VERSION }).setToken(this.client.token);
|
|
35
35
|
try {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AnySelectMenuInteraction, type AutocompleteInteraction, type Awaitable, type ButtonInteraction, type ChatInputCommandInteraction, type
|
|
1
|
+
import { type AnySelectMenuInteraction, type AutocompleteInteraction, type Awaitable, type ButtonInteraction, type ChatInputCommandInteraction, type ContextMenuCommandBuilder, type MessageContextMenuCommandInteraction, type ModalSubmitInteraction, type SlashCommandOptionsOnlyBuilder, type SlashCommandSubcommandsOnlyBuilder, type UserContextMenuCommandInteraction } from "discord.js";
|
|
2
2
|
import { type StelliaClient } from "../client/index.js";
|
|
3
3
|
import { type EventStructure } from "./Event.js";
|
|
4
4
|
import { type GuildConfigurationType } from "../typescript/index.js";
|
|
@@ -58,8 +58,7 @@ interface ContextMenuInteractionStructure {
|
|
|
58
58
|
data: ContextMenuDataStructure;
|
|
59
59
|
}
|
|
60
60
|
interface ContextMenuDataStructure {
|
|
61
|
-
|
|
62
|
-
type: ContextMenuCommandType;
|
|
61
|
+
command: ContextMenuCommandBuilder;
|
|
63
62
|
reply: ReplyStructure<true> | ReplyStructure<false>;
|
|
64
63
|
}
|
|
65
64
|
interface MessageInteractionStructure {
|