xernerx 3.5.0 → 3.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.
Files changed (29) hide show
  1. package/{types → dist}/build/ContextCommandBuilder.d.ts +28 -36
  2. package/{types → dist}/build/EventBuilder.d.ts +0 -0
  3. package/{types → dist}/build/InhibitorBuilder.d.ts +1 -1
  4. package/{types → dist}/build/MessageCommandBuilder.d.ts +17 -23
  5. package/{types → dist}/build/SlashCommandBuilder.d.ts +17 -23
  6. package/{types → dist}/client/XernerxClient.d.ts +0 -0
  7. package/{types → dist}/handlers/CommandHandler.d.ts +0 -0
  8. package/{types → dist}/handlers/EventHandler.d.ts +0 -0
  9. package/{types → dist}/handlers/Handler.d.ts +0 -0
  10. package/{types → dist}/handlers/InhibitorHandler.d.ts +0 -0
  11. package/dist/main.cjs +19 -8
  12. package/{types → dist}/main.d.ts +1 -15
  13. package/{types → dist}/models/CommandArguments.d.ts +1 -1
  14. package/{types → dist}/models/Events.d.ts +0 -0
  15. package/{types → dist}/models/Extensions.d.ts +0 -0
  16. package/{types → dist}/tools/XernerxError.d.ts +0 -0
  17. package/{types → dist}/tools/package.d.ts +11 -0
  18. package/dist/tools/package.js +18 -7
  19. package/dist/types/enums.d.ts +35 -0
  20. package/{types → dist}/types/interfaces.d.ts +0 -0
  21. package/{types → dist}/types/options.d.ts +0 -0
  22. package/{types → dist}/types/types.d.ts +9 -36
  23. package/{types → dist}/utils/ClientUtil.d.ts +0 -0
  24. package/{types → dist}/utils/CommandUtil.d.ts +2 -4
  25. package/{types → dist}/validators/CommandValidations.d.ts +1 -6
  26. package/{types → dist}/validators/InhibitorValidations.d.ts +0 -0
  27. package/package.json +5 -5
  28. package/types/types/enums.d.ts +0 -44
  29. package/types/validators/Shapes.d.ts +0 -1
@@ -10,47 +10,39 @@ export default class ContextCommandBuilder {
10
10
  id: string;
11
11
  data: ContextMenuCommandBuilder;
12
12
  name: string;
13
- type: import('@discordjs/builders').ContextMenuCommandType;
13
+ type: import("@discordjs/builders").ContextMenuCommandType;
14
14
  description: string | undefined;
15
15
  info: string | undefined;
16
16
  category: string | undefined;
17
17
  channelType: number | number[] | undefined;
18
18
  cooldown: number | undefined;
19
- ignore:
20
- | {
21
- owner?: boolean | undefined;
22
- users?: string[] | undefined;
23
- channels?: string[] | undefined;
24
- guilds?: string[] | undefined;
25
- }
26
- | undefined;
27
- strict:
28
- | {
29
- owner?: boolean | undefined;
30
- users?: string[] | undefined;
31
- channels?: string[] | undefined;
32
- guilds?: string[] | undefined;
33
- }
34
- | undefined;
35
- permissions:
36
- | {
37
- client?: string[] | undefined;
38
- users?: string[] | undefined;
39
- dm?: boolean | undefined;
40
- }
41
- | undefined;
42
- defer:
43
- | {
44
- /**
45
- * @param {Interaction} interaction - The Discord interaction event data.
46
- * @description Make your custom command here.
47
- * TODO - update description
48
- */
49
- reply?: boolean | undefined;
50
- ephemeral?: boolean | undefined;
51
- fetch?: boolean | undefined;
52
- }
53
- | undefined;
19
+ ignore: {
20
+ owner?: boolean | undefined;
21
+ users?: string[] | undefined;
22
+ channels?: string[] | undefined;
23
+ guilds?: string[] | undefined;
24
+ } | undefined;
25
+ strict: {
26
+ owner?: boolean | undefined;
27
+ users?: string[] | undefined;
28
+ channels?: string[] | undefined;
29
+ guilds?: string[] | undefined;
30
+ } | undefined;
31
+ permissions: {
32
+ client?: string[] | undefined;
33
+ users?: string[] | undefined;
34
+ dm?: boolean | undefined;
35
+ } | undefined;
36
+ defer: {
37
+ /**
38
+ * @param {Interaction} interaction - The Discord interaction event data.
39
+ * @description Make your custom command here.
40
+ * TODO - update description
41
+ */
42
+ reply?: boolean | undefined;
43
+ ephemeral?: boolean | undefined;
44
+ fetch?: boolean | undefined;
45
+ } | undefined;
54
46
  client: typeof XernerxClient;
55
47
  constructor(id: string, options: ContextCommandOptions);
56
48
  /**
File without changes
@@ -9,7 +9,7 @@ import { XernerxInteraction, XernerxMessage } from '../types/types.js';
9
9
  export default class InhibitorBuilder {
10
10
  id: string;
11
11
  name: string;
12
- type: import('../main.js').InhibitorType;
12
+ type: import("../main.js").InhibitorType;
13
13
  client: typeof XernerxClient;
14
14
  constructor(id: string, options: InhibitorOptions);
15
15
  /**
@@ -17,29 +17,23 @@ export default class MessageCommandBuilder {
17
17
  prefix: string[];
18
18
  regex: string | undefined;
19
19
  channelType: number[] | undefined;
20
- ignore:
21
- | {
22
- owner?: boolean | undefined;
23
- users?: string[] | undefined;
24
- channels?: string[] | undefined;
25
- guilds?: string[] | undefined;
26
- }
27
- | undefined;
28
- strict:
29
- | {
30
- owner?: boolean | undefined;
31
- users?: string[] | undefined;
32
- channels?: string[] | undefined;
33
- guilds?: string[] | undefined;
34
- }
35
- | undefined;
36
- permissions:
37
- | {
38
- client?: string[] | undefined;
39
- user?: string[] | undefined;
40
- dm?: boolean | undefined;
41
- }
42
- | undefined;
20
+ ignore: {
21
+ owner?: boolean | undefined;
22
+ users?: string[] | undefined;
23
+ channels?: string[] | undefined;
24
+ guilds?: string[] | undefined;
25
+ } | undefined;
26
+ strict: {
27
+ owner?: boolean | undefined;
28
+ users?: string[] | undefined;
29
+ channels?: string[] | undefined;
30
+ guilds?: string[] | undefined;
31
+ } | undefined;
32
+ permissions: {
33
+ client?: string[] | undefined;
34
+ user?: string[] | undefined;
35
+ dm?: boolean | undefined;
36
+ } | undefined;
43
37
  cooldown: number;
44
38
  args: MessageArgumentOptions[];
45
39
  client: typeof XernerxClient;
@@ -15,22 +15,18 @@ export default class SlashCommandBuilder {
15
15
  category: string | undefined;
16
16
  channelType: Discord.ChannelType | undefined;
17
17
  cooldown: number | undefined;
18
- ignore:
19
- | {
20
- owner?: boolean | undefined;
21
- users?: string[] | undefined;
22
- channels?: string[] | undefined;
23
- guilds?: string[] | undefined;
24
- }
25
- | undefined;
26
- strict:
27
- | {
28
- owner?: boolean | undefined;
29
- users?: string[] | undefined;
30
- channels?: string[] | undefined;
31
- guilds?: string[] | undefined;
32
- }
33
- | undefined;
18
+ ignore: {
19
+ owner?: boolean | undefined;
20
+ users?: string[] | undefined;
21
+ channels?: string[] | undefined;
22
+ guilds?: string[] | undefined;
23
+ } | undefined;
24
+ strict: {
25
+ owner?: boolean | undefined;
26
+ users?: string[] | undefined;
27
+ channels?: string[] | undefined;
28
+ guilds?: string[] | undefined;
29
+ } | undefined;
34
30
  permissions: {
35
31
  client?: string[] | undefined;
36
32
  users?: string[] | undefined;
@@ -39,13 +35,11 @@ export default class SlashCommandBuilder {
39
35
  args?: object[];
40
36
  subcommands?: object[];
41
37
  groups?: object[];
42
- defer:
43
- | {
44
- reply?: boolean | undefined;
45
- ephemeral?: boolean | undefined;
46
- fetchReply?: boolean | undefined;
47
- }
48
- | undefined;
38
+ defer: {
39
+ reply?: boolean | undefined;
40
+ ephemeral?: boolean | undefined;
41
+ fetchReply?: boolean | undefined;
42
+ } | undefined;
49
43
  client: typeof XernerxClient;
50
44
  constructor(id: string, options: SlashCommandOptions);
51
45
  /**
File without changes
File without changes
File without changes
File without changes
File without changes
package/dist/main.cjs CHANGED
@@ -1936,23 +1936,31 @@ var SlashCommandBuilder = class {
1936
1936
  // src/tools/package.ts
1937
1937
  var package_default = {
1938
1938
  name: "xernerx",
1939
- version: "3.4.3",
1939
+ version: "3.5.0",
1940
1940
  type: "module",
1941
1941
  description: "A bot framework for discord.js.",
1942
1942
  main: "dist/main.js",
1943
- keywords: ["discord.js", "discord", "framework"],
1943
+ keywords: ["discord.js", "discord", "framework", "mjs", "esm", "cjs", "ts"],
1944
1944
  author: "Dummi",
1945
1945
  license: "MIT",
1946
1946
  homepage: "https://xernerx.github.io/xernerx/home.html",
1947
1947
  packageManager: "npm@8.5.5",
1948
+ exports: {
1949
+ import: "./dist/main.js",
1950
+ require: "./dist/main.cjs",
1951
+ types: "./types",
1952
+ node: null,
1953
+ default: null
1954
+ },
1948
1955
  scripts: {
1949
1956
  start: "npm i && npm fund && npm audit fix --force && npm link && tsc -w",
1950
- patch: "npm run build && tsc && git add . && npm run commit && npm version patch && npm publish && git push",
1951
- minor: "npm run build && tsc && git add . && npm run commit && npm version minor && npm publish && git push",
1952
- major: "npm run build && tsc && git add . && npm run commit && npm version major && npm publish && git push",
1957
+ patch: "npm run write && git add . && npm run commit && npm version patch && npm publish && git push",
1958
+ minor: "npm run write && git add . && npm run commit && npm version minor && npm publish && git push",
1959
+ major: "npm run write && git add . && npm run commit && npm version major && npm publish && git push",
1953
1960
  site: "git add docs && npm run commit && git push",
1954
1961
  commit: "node ../.scripts/commit.js",
1955
- build: "node ../.scripts/rewritePackage.js"
1962
+ write: "npm run build && node ../.scripts/rewritePackage.js ",
1963
+ build: "tsc && npx tsup src/main.ts && npx prettier --write src types"
1956
1964
  },
1957
1965
  repository: {
1958
1966
  type: "git",
@@ -1965,10 +1973,13 @@ var package_default = {
1965
1973
  "@sapphire/shapeshift": "^3.8.1",
1966
1974
  "discord.js": "^14.7.0",
1967
1975
  dumfunctions: "^2.0.0",
1968
- "xernerx-extension-builder": "^0.0.2"
1976
+ "xernerx-extension-builder": "^0.0.2",
1977
+ zod: "^3.20.6"
1969
1978
  },
1970
1979
  devDependencies: {
1971
- typescript: "^4.9.4"
1980
+ prettier: "^2.8.4",
1981
+ tsup: "^6.6.0",
1982
+ typescript: "^4.9.5"
1972
1983
  }
1973
1984
  };
1974
1985
 
@@ -27,18 +27,4 @@ declare const _default: {
27
27
  version: string;
28
28
  };
29
29
  export default _default;
30
- export {
31
- XernerxClient,
32
- CommandType,
33
- EventEmitterType,
34
- InhibitorType,
35
- ContextCommandType,
36
- EventBuilder,
37
- MessageCommandBuilder,
38
- ContextCommandBuilder,
39
- SlashCommandBuilder,
40
- InhibitorBuilder,
41
- ExtensionBuilder,
42
- XernerxError,
43
- xernerxVersion,
44
- };
30
+ export { XernerxClient, CommandType, EventEmitterType, InhibitorType, ContextCommandType, EventBuilder, MessageCommandBuilder, ContextCommandBuilder, SlashCommandBuilder, InhibitorBuilder, ExtensionBuilder, XernerxError, xernerxVersion, };
@@ -13,5 +13,5 @@ interface Flag {
13
13
  interface Argument {
14
14
  [index: string]: string | number | null;
15
15
  }
16
- export declare function messageArguments(message: XernerxMessage, command: MessageCommandBuilder): Promise<import('discord.js').Message<boolean> | Flag | Argument | undefined>;
16
+ export declare function messageArguments(message: XernerxMessage, command: MessageCommandBuilder): Promise<import("discord.js").Message<boolean> | Flag | Argument | undefined>;
17
17
  export {};
File without changes
File without changes
File without changes
@@ -9,6 +9,13 @@ declare const _default: {
9
9
  license: string;
10
10
  homepage: string;
11
11
  packageManager: string;
12
+ exports: {
13
+ import: string;
14
+ require: string;
15
+ types: string;
16
+ node: null;
17
+ default: null;
18
+ };
12
19
  scripts: {
13
20
  start: string;
14
21
  patch: string;
@@ -16,6 +23,7 @@ declare const _default: {
16
23
  major: string;
17
24
  site: string;
18
25
  commit: string;
26
+ write: string;
19
27
  build: string;
20
28
  };
21
29
  repository: {
@@ -30,8 +38,11 @@ declare const _default: {
30
38
  'discord.js': string;
31
39
  dumfunctions: string;
32
40
  'xernerx-extension-builder': string;
41
+ zod: string;
33
42
  };
34
43
  devDependencies: {
44
+ prettier: string;
45
+ tsup: string;
35
46
  typescript: string;
36
47
  };
37
48
  };
@@ -1,22 +1,30 @@
1
1
  export default {
2
2
  name: 'xernerx',
3
- version: '3.4.3',
3
+ version: '3.5.0',
4
4
  type: 'module',
5
5
  description: 'A bot framework for discord.js.',
6
6
  main: 'dist/main.js',
7
- keywords: ['discord.js', 'discord', 'framework'],
7
+ keywords: ['discord.js', 'discord', 'framework', 'mjs', 'esm', 'cjs', 'ts'],
8
8
  author: 'Dummi',
9
9
  license: 'MIT',
10
10
  homepage: 'https://xernerx.github.io/xernerx/home.html',
11
11
  packageManager: 'npm@8.5.5',
12
+ exports: {
13
+ import: './dist/main.js',
14
+ require: './dist/main.cjs',
15
+ types: './types',
16
+ node: null,
17
+ default: null,
18
+ },
12
19
  scripts: {
13
20
  start: 'npm i && npm fund && npm audit fix --force && npm link && tsc -w',
14
- patch: 'npm run build && tsc && git add . && npm run commit && npm version patch && npm publish && git push',
15
- minor: 'npm run build && tsc && git add . && npm run commit && npm version minor && npm publish && git push',
16
- major: 'npm run build && tsc && git add . && npm run commit && npm version major && npm publish && git push',
21
+ patch: 'npm run write && git add . && npm run commit && npm version patch && npm publish && git push',
22
+ minor: 'npm run write && git add . && npm run commit && npm version minor && npm publish && git push',
23
+ major: 'npm run write && git add . && npm run commit && npm version major && npm publish && git push',
17
24
  site: 'git add docs && npm run commit && git push',
18
25
  commit: 'node ../.scripts/commit.js',
19
- build: 'node ../.scripts/rewritePackage.js',
26
+ write: 'npm run build && node ../.scripts/rewritePackage.js ',
27
+ build: 'tsc && npx tsup src/main.ts && npx prettier --write src types',
20
28
  },
21
29
  repository: {
22
30
  type: 'git',
@@ -30,8 +38,11 @@ export default {
30
38
  'discord.js': '^14.7.0',
31
39
  dumfunctions: '^2.0.0',
32
40
  'xernerx-extension-builder': '^0.0.2',
41
+ zod: '^3.20.6',
33
42
  },
34
43
  devDependencies: {
35
- typescript: '^4.9.4',
44
+ prettier: '^2.8.4',
45
+ tsup: '^6.6.0',
46
+ typescript: '^4.9.5',
36
47
  },
37
48
  };
@@ -0,0 +1,35 @@
1
+ import { SlashCommandStringOption, SlashCommandNumberOption, SlashCommandIntegerOption, SlashCommandBooleanOption, SlashCommandUserOption, SlashCommandChannelOption, SlashCommandRoleOption, SlashCommandMentionableOption } from 'discord.js';
2
+ export declare enum InhibitorType {
3
+ Member = "Member",
4
+ User = "User",
5
+ Guild = "Guild",
6
+ SlashCommand = "SlashCommand",
7
+ MessageCommand = "MessageCommand",
8
+ ContextCommand = "ContextCommand",
9
+ Command = "Command",
10
+ Message = "Message",
11
+ Interaction = "Interaction",
12
+ Channel = "Channel"
13
+ }
14
+ export declare enum CommandType {
15
+ Message = "MessageCommand",
16
+ Slash = "SlashCommand",
17
+ Context = "ContextCommand",
18
+ Event = "Event",
19
+ Inhibitor = "Inhibitor",
20
+ MessageCommand = "MessageCommand",
21
+ SlashCommand = "SlashCommand",
22
+ ContextCommand = "ContextCommand"
23
+ }
24
+ export declare enum ContextCommandType {
25
+ Message = 3,
26
+ User = 2
27
+ }
28
+ export declare enum EventEmitterType {
29
+ Client = "client",
30
+ Rest = "rest",
31
+ Process = "process"
32
+ }
33
+ export type SlashCommandOptionChoices = SlashCommandStringOption | SlashCommandNumberOption | SlashCommandIntegerOption;
34
+ export type SlashCommandOption = SlashCommandOptionChoices | SlashCommandBooleanOption | SlashCommandUserOption | SlashCommandChannelOption | SlashCommandRoleOption | SlashCommandMentionableOption;
35
+ export type SlashArgumentTypes = 'String' | 'Number' | 'Boolean' | 'User' | 'Channel' | 'Role' | 'Mentionable' | 'Integer';
File without changes
File without changes
@@ -21,41 +21,14 @@ export interface XernerxInteraction extends InteractionResponse {
21
21
  export interface XernerxUser extends User {
22
22
  isOwner: boolean;
23
23
  }
24
- export interface XernerxRole extends Role {}
25
- export interface XernerxTextChannel extends TextChannel {}
26
- export interface XernerxGuild extends Guild {}
27
- export interface XernerxMember extends GuildMember {}
24
+ export interface XernerxRole extends Role {
25
+ }
26
+ export interface XernerxTextChannel extends TextChannel {
27
+ }
28
+ export interface XernerxGuild extends Guild {
29
+ }
30
+ export interface XernerxMember extends GuildMember {
31
+ }
28
32
  export type MessageCommandArgsTypes = 'rest' | 'option' | 'flag' | 'string' | 'number' | 'channel' | 'user' | 'member' | 'boolean' | 'role';
29
- export type Localizations =
30
- | 'id'
31
- | 'da'
32
- | 'de'
33
- | 'en-GB'
34
- | 'en-US'
35
- | 'es-ES'
36
- | 'fr'
37
- | 'hr'
38
- | 'it'
39
- | 'lt'
40
- | 'hu'
41
- | 'nl'
42
- | 'no'
43
- | 'pl'
44
- | 'pt-BR'
45
- | 'ro'
46
- | 'fi'
47
- | 'sv-SE'
48
- | 'vi'
49
- | 'tr'
50
- | 'cs'
51
- | 'el'
52
- | 'bg'
53
- | 'ru'
54
- | 'uk'
55
- | 'hi'
56
- | 'th'
57
- | 'zh-CN'
58
- | 'ja'
59
- | 'zh-TW'
60
- | 'ko';
33
+ export type Localizations = 'id' | 'da' | 'de' | 'en-GB' | 'en-US' | 'es-ES' | 'fr' | 'hr' | 'it' | 'lt' | 'hu' | 'nl' | 'no' | 'pl' | 'pt-BR' | 'ro' | 'fi' | 'sv-SE' | 'vi' | 'tr' | 'cs' | 'el' | 'bg' | 'ru' | 'uk' | 'hi' | 'th' | 'zh-CN' | 'ja' | 'zh-TW' | 'ko';
61
34
  export type EventEmitterType = 'client' | 'process';
File without changes
@@ -31,7 +31,7 @@ export declare class MessageCommandUtil {
31
31
  reply(content: MessagePayload | string): Promise<Message<boolean> | undefined>;
32
32
  send(content: MessagePayload | string): Promise<Message<true> | Message<false> | undefined>;
33
33
  defer(time: number): Promise<unknown>;
34
- getCommands(): import('@discordjs/collection').Collection<string, import('../main.js').MessageCommandBuilder>;
34
+ getCommands(): import("@discordjs/collection").Collection<string, import("../main.js").MessageCommandBuilder>;
35
35
  getCommandName(): void;
36
36
  selectMenuPaginator(embeds: Array<EmbedBuilder>, options?: SelectMenuOptions): void;
37
37
  buttonPaginator(embeds: Array<EmbedBuilder>, options: ButtonOptions): void;
@@ -45,9 +45,7 @@ export declare class InteractionCommandUtil {
45
45
  constructor(client: XernerxClient, interaction: Interaction);
46
46
  reply(content: MessagePayload | string): any;
47
47
  defer(time: number): Promise<unknown>;
48
- getCommands():
49
- | import('@discordjs/collection').Collection<string, import('../main.js').SlashCommandBuilder>
50
- | import('@discordjs/collection').Collection<string, import('../main.js').ContextCommandBuilder>;
48
+ getCommands(): import("@discordjs/collection").Collection<string, import("../main.js").SlashCommandBuilder> | import("@discordjs/collection").Collection<string, import("../main.js").ContextCommandBuilder>;
51
49
  getCommandName(): void;
52
50
  selectMenuPaginator(embeds: Array<EmbedBuilder>, options?: SelectMenuOptions): void;
53
51
  buttonPaginator(embeds: Array<EmbedBuilder>, options: ButtonOptions): void;
@@ -4,9 +4,4 @@ import MessageCommandBuilder from '../build/MessageCommandBuilder.js';
4
4
  import SlashCommandBuilder from '../build/SlashCommandBuilder.js';
5
5
  import XernerxClient from '../client/XernerxClient.js';
6
6
  import { XernerxMessage } from '../types/types.js';
7
- export default function commandValidation(
8
- action: XernerxMessage | Interaction,
9
- command: SlashCommandBuilder | MessageCommandBuilder | ContextCommandBuilder | any,
10
- client: XernerxClient,
11
- res?: boolean
12
- ): boolean;
7
+ export default function commandValidation(action: XernerxMessage | Interaction, command: SlashCommandBuilder | MessageCommandBuilder | ContextCommandBuilder | any, client: XernerxClient, res?: boolean): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xernerx",
3
- "version": "3.5.0",
3
+ "version": "3.5.1",
4
4
  "type": "module",
5
5
  "description": "A bot framework for discord.js.",
6
6
  "main": "dist/main.js",
@@ -32,7 +32,7 @@
32
32
  "site": "git add docs && npm run commit && git push",
33
33
  "commit": "node ../.scripts/commit.js",
34
34
  "write": "npm run build && node ../.scripts/rewritePackage.js ",
35
- "build": "tsc && npx tsup src/main.ts && npx prettier --write src types"
35
+ "build": "tsc && npx tsup src/main.ts && npx prettier --write src"
36
36
  },
37
37
  "repository": {
38
38
  "type": "git",
@@ -43,9 +43,9 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "@sapphire/shapeshift": "^3.8.1",
46
- "discord.js": "^14.7.0",
47
- "dumfunctions": "^2.0.0",
48
- "xernerx-extension-builder": "^0.0.2",
46
+ "discord.js": "^14.7.1",
47
+ "dumfunctions": "^2.1.1",
48
+ "xernerx-extension-builder": "^0.0.5",
49
49
  "zod": "^3.20.6"
50
50
  },
51
51
  "devDependencies": {
@@ -1,44 +0,0 @@
1
- import {
2
- SlashCommandStringOption,
3
- SlashCommandNumberOption,
4
- SlashCommandIntegerOption,
5
- SlashCommandBooleanOption,
6
- SlashCommandUserOption,
7
- SlashCommandChannelOption,
8
- SlashCommandRoleOption,
9
- SlashCommandMentionableOption,
10
- } from 'discord.js';
11
- export declare enum InhibitorType {
12
- Member = 'Member',
13
- User = 'User',
14
- Guild = 'Guild',
15
- SlashCommand = 'SlashCommand',
16
- MessageCommand = 'MessageCommand',
17
- ContextCommand = 'ContextCommand',
18
- Command = 'Command',
19
- Message = 'Message',
20
- Interaction = 'Interaction',
21
- Channel = 'Channel',
22
- }
23
- export declare enum CommandType {
24
- Message = 'MessageCommand',
25
- Slash = 'SlashCommand',
26
- Context = 'ContextCommand',
27
- Event = 'Event',
28
- Inhibitor = 'Inhibitor',
29
- MessageCommand = 'MessageCommand',
30
- SlashCommand = 'SlashCommand',
31
- ContextCommand = 'ContextCommand',
32
- }
33
- export declare enum ContextCommandType {
34
- Message = 3,
35
- User = 2,
36
- }
37
- export declare enum EventEmitterType {
38
- Client = 'client',
39
- Rest = 'rest',
40
- Process = 'process',
41
- }
42
- export type SlashCommandOptionChoices = SlashCommandStringOption | SlashCommandNumberOption | SlashCommandIntegerOption;
43
- export type SlashCommandOption = SlashCommandOptionChoices | SlashCommandBooleanOption | SlashCommandUserOption | SlashCommandChannelOption | SlashCommandRoleOption | SlashCommandMentionableOption;
44
- export type SlashArgumentTypes = 'String' | 'Number' | 'Boolean' | 'User' | 'Channel' | 'Role' | 'Mentionable' | 'Integer';
@@ -1 +0,0 @@
1
- export {};