discordx
Advanced tools
Comparing version 5.1.9 to 5.2.0
@@ -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; |
@@ -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
198923
3141