Socket
Socket
Sign inDemoInstall

discordx

Package Overview
Dependencies
30
Maintainers
1
Versions
616
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 11.10.0 to 11.11.0

6

CHANGELOG.md
# discordx
## 11.11.0
### Minor Changes
- improve init application commands method
## 11.10.0

@@ -4,0 +10,0 @@

37

dist/index.d.ts

@@ -143,21 +143,13 @@ import { ApplicationCommand, Message, Client as Client$1, Snowflake, CommandInteraction, AutocompleteInteraction, Interaction, ButtonInteraction, ModalSubmitInteraction, AnySelectMenuInteraction, ContextMenuCommandInteraction, MessageReaction, PartialMessageReaction, User, PartialUser, PermissionResolvable, LocalizationMap, ApplicationCommandType, ChatInputCommandInteraction, ChannelType, ApplicationCommandOptionType, ApplicationCommandOptionData, ClientOptions as ClientOptions$1, ClientEvents, RestEvents, ThreadChannel, GuildChannel, GuildMember, Role } from 'discord.js';

/**
* Initialize all the @Slash
* Initialize application commands
*/
initApplicationCommands(options?: {
global?: InitCommandOptions;
guild?: InitCommandOptions;
}): Promise<void>;
initApplicationCommands(): Promise<void>;
/**
* Init application commands for guild
* @param guildId - Guild identifier
* @param DCommands - Array of commands
* @param options - Options
*/
initGuildApplicationCommands(guildId: string, DCommands: DApplicationCommand[], options?: InitCommandOptions): Promise<void>;
initGuildApplicationCommands(guildId: string, DCommands: DApplicationCommand[]): Promise<void>;
/**
* Init global application commands
*
* @param options - Options
*/
initGlobalApplicationCommands(options?: InitCommandOptions): Promise<void>;
initGlobalApplicationCommands(): Promise<void>;
/**

@@ -592,21 +584,2 @@ * Clear the application commands globally or for some guilds

/**
* Init command configuration
*/
interface InitCommandOptions {
disable?: {
/**
* Disable the add operation, which registers application commands with Discord
*/
add?: boolean;
/**
* Disable the delete operation, which unregister application commands with Discord
*/
delete?: boolean;
/**
* Disable the update operation, which update application commands with Discord
*/
update?: boolean;
};
}
/**
* Custom logger

@@ -1477,2 +1450,2 @@ */

export { type ApplicationCommandDataEx, ApplicationCommandMixin, type ApplicationCommandOptionChoiceDataEx, type ApplicationCommandOptions, type ArgSplitter, type ArgsOf, type Awaitable, Bot, ButtonComponent, Client, type ClientOptions, type ComponentOptions, ComponentType, ContextMenu, DApplicationCommand, DApplicationCommandGroup, DApplicationCommandOption, DApplicationCommandOptionChoice, DComponent, DDiscord, DGuard, DOn, DReaction, DSimpleCommand, DSimpleCommandOption, Discord, type EventListenerDetail, type EventOptions, type ForbidCharacter, Guard, type GuardFunction, Guild, type IGuild, type ILogger, type IPrefix, type IPrefixResolver, type ISimpleCommandByName, type ITriggerEventData, type InitCommandOptions, MetadataStorage, ModalComponent, type Next, type NotEmpty, type NotEmptyCheck, On, Once, Reaction, type ReactionOptions, RecursivelyMatchField, type RestArgsOf, type RestEventOptions, SelectMenuComponent, SimpleCommand, type SimpleCommandConfig, SimpleCommandMessage, SimpleCommandOption, type SimpleCommandOptionOptions, SimpleCommandOptionType, type SimpleCommandOptions, SimpleCommandParseType, type SimpleOptionType, Slash, type SlashAutoCompleteOption, SlashChoice, type SlashChoiceType, SlashGroup, type SlashGroupBase, type SlashGroupOptions, type SlashGroupRoot, type SlashGroupSubRoot, SlashNameValidator, SlashOption, type SlashOptionAutoCompleteOptions, type SlashOptionBaseOptions, type SlashOptionChannelOptions, type SlashOptionNumberOptions, type SlashOptionOptions, type SlashOptionStringOptions, type SpecialCharacters, SpecialCharactersList, type TransformerFunction, type TruncateTo32, type VName, type VerifyName, type WhitelistWords, isApplicationCommandEqual, resolveIGuilds };
export { type ApplicationCommandDataEx, ApplicationCommandMixin, type ApplicationCommandOptionChoiceDataEx, type ApplicationCommandOptions, type ArgSplitter, type ArgsOf, type Awaitable, Bot, ButtonComponent, Client, type ClientOptions, type ComponentOptions, ComponentType, ContextMenu, DApplicationCommand, DApplicationCommandGroup, DApplicationCommandOption, DApplicationCommandOptionChoice, DComponent, DDiscord, DGuard, DOn, DReaction, DSimpleCommand, DSimpleCommandOption, Discord, type EventListenerDetail, type EventOptions, type ForbidCharacter, Guard, type GuardFunction, Guild, type IGuild, type ILogger, type IPrefix, type IPrefixResolver, type ISimpleCommandByName, type ITriggerEventData, MetadataStorage, ModalComponent, type Next, type NotEmpty, type NotEmptyCheck, On, Once, Reaction, type ReactionOptions, RecursivelyMatchField, type RestArgsOf, type RestEventOptions, SelectMenuComponent, SimpleCommand, type SimpleCommandConfig, SimpleCommandMessage, SimpleCommandOption, type SimpleCommandOptionOptions, SimpleCommandOptionType, type SimpleCommandOptions, SimpleCommandParseType, type SimpleOptionType, Slash, type SlashAutoCompleteOption, SlashChoice, type SlashChoiceType, SlashGroup, type SlashGroupBase, type SlashGroupOptions, type SlashGroupRoot, type SlashGroupSubRoot, SlashNameValidator, SlashOption, type SlashOptionAutoCompleteOptions, type SlashOptionBaseOptions, type SlashOptionChannelOptions, type SlashOptionNumberOptions, type SlashOptionOptions, type SlashOptionStringOptions, type SpecialCharacters, SpecialCharactersList, type TransformerFunction, type TruncateTo32, type VName, type VerifyName, type WhitelistWords, isApplicationCommandEqual, resolveIGuilds };
{
"name": "discordx",
"version": "11.10.0",
"version": "11.11.0",
"private": false,

@@ -5,0 +5,0 @@ "description": "Create a discord bot with TypeScript and Decorators!",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc