Socket
Socket
Sign inDemoInstall

discordx

Package Overview
Dependencies
1
Maintainers
1
Versions
616
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.1.9 to 5.2.0

7

build/decorators/decorators/Button.d.ts

@@ -0,2 +1,7 @@

import { Snowflake } from "discord.js";
import { MethodDecoratorEx } from "../../types/public/decorators";
export declare function Button(id: string): MethodDecoratorEx;
export declare function Button(id?: string): MethodDecoratorEx;
export declare function Button(id: string, params?: {
guilds?: Snowflake[];
botIds?: string[];
}): MethodDecoratorEx;

2

build/decorators/decorators/Button.js

@@ -7,3 +7,3 @@ "use strict";

return (target, key) => {
const button = __1.DButton.create(id, params === null || params === void 0 ? void 0 : params.guilds, params === null || params === void 0 ? void 0 : params.botIds).decorate(target.constructor, key, target[key]);
const button = __1.DButton.create(id !== null && id !== void 0 ? id : key, params === null || params === void 0 ? void 0 : params.guilds, params === null || params === void 0 ? void 0 : params.botIds).decorate(target.constructor, key, target[key]);
__1.MetadataStorage.instance.addButton(button);

@@ -10,0 +10,0 @@ };

import "reflect-metadata";
import { ParameterDecoratorEx } from "../../types/public/decorators";
export declare function CommandOption(name: string): ParameterDecoratorEx;
export declare function CommandOption(name: string, params: {
export declare function CommandOption(name?: string): ParameterDecoratorEx;
export declare function CommandOption(name: string, params?: {
description?: string;
type?: "string" | "number" | "boolean";
}): ParameterDecoratorEx;
import "reflect-metadata";
import { OptionParams } from "../..";
import { ParameterDecoratorEx } from "../../types/public/decorators";
export declare function Option(name: string): ParameterDecoratorEx;
export declare function Option(name?: string): ParameterDecoratorEx;
export declare function Option(name: string, params?: OptionParams): ParameterDecoratorEx;
export declare function Option(name: string, params: OptionParams): ParameterDecoratorEx;
import { Snowflake } from "discord.js";
import { MethodDecoratorEx } from "../../types/public/decorators";
export declare function SelectMenu(id?: string): MethodDecoratorEx;
export declare function SelectMenu(id: string, params?: {
guilds?: Snowflake[];
botIds?: string[];
}): (target: Record<string, any>, key: string) => void;
}): MethodDecoratorEx;

@@ -7,3 +7,3 @@ "use strict";

return function (target, key) {
const button = __1.DSelectMenu.create(id, params === null || params === void 0 ? void 0 : params.guilds, params === null || params === void 0 ? void 0 : params.botIds).decorate(target.constructor, key, target[key]);
const button = __1.DSelectMenu.create(id !== null && id !== void 0 ? id : key, params === null || params === void 0 ? void 0 : params.guilds, params === null || params === void 0 ? void 0 : params.botIds).decorate(target.constructor, key, target[key]);
__1.MetadataStorage.instance.addSelectMenu(button);

@@ -10,0 +10,0 @@ };

{
"name": "discordx",
"version": "5.1.9",
"version": "5.2.0",
"description": "Create your discord bot by using TypeScript and decorators!",

@@ -5,0 +5,0 @@ "main": "build/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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