Comparing version 5.1.1 to 5.1.2
@@ -47,2 +47,4 @@ import { REST, Routes } from "discord.js"; | ||
if (part instanceof SlashCommand || part instanceof UserContextMenuOption || part instanceof MessageContextMenuOption) { | ||
if (!part.data.toJSON) | ||
throw new Error("Slash command data is not as expected"); | ||
this.commandJSONData.push(part.data.toJSON()); | ||
@@ -49,0 +51,0 @@ } |
@@ -131,3 +131,3 @@ import { ButtonInteraction, ChatInputCommandInteraction, ContextMenuCommandBuilder, GatewayIntentBits, Message, MessageContextMenuCommandInteraction, PermissionResolvable, SlashCommandBuilder, StringSelectMenuInteraction, UserContextMenuCommandInteraction } from "discord.js"; | ||
/** Data to register into the Discord API */ | ||
data: Omit<SlashCommandBuilder, "addSubcommand" | "addSubcommandGroup">; | ||
data: Partial<SlashCommandBuilder>; | ||
/** Minimum time (in seconds) between usages */ | ||
@@ -144,3 +144,3 @@ cooldown?: number; | ||
/** Data to register into the Discord API */ | ||
data: Omit<SlashCommandBuilder, "addSubcommand" | "addSubcommandGroup">; | ||
data: Partial<SlashCommandBuilder>; | ||
/** Minimum time (in seconds) between usages */ | ||
@@ -147,0 +147,0 @@ cooldown: number; |
{ | ||
"name": "artibot", | ||
"version": "5.1.1", | ||
"version": "5.1.2", | ||
"description": "Modern, fast and modular open-source Discord bot", | ||
@@ -5,0 +5,0 @@ "exports": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3
446405
134
4029