necord 5.4.0 → 5.4.2
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.
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
|
3
3
|
|
|
4
|
+
# [5.4.0](https://github.com/necordjs/necord/compare/v5.3.1...v5.4.0) - (2022-11-29)
|
|
5
|
+
|
|
6
|
+
## Refactor
|
|
7
|
+
|
|
8
|
+
- Some improvments ([665c8e2](https://github.com/necordjs/necord/commit/665c8e277fc5d7d481e5740069fa51b4ebf7be84))
|
|
9
|
+
|
|
4
10
|
# [5.3.1](https://github.com/necordjs/necord/compare/v5.3.0...v5.3.1) - (2022-11-26)
|
|
5
11
|
|
|
6
12
|
## Features
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AutocompleteInteraction, ButtonInteraction, ChatInputCommandInteraction, Message, MessageContextMenuCommandInteraction, ModalSubmitInteraction, SelectMenuInteraction, UserContextMenuCommandInteraction } from 'discord.js';
|
|
1
|
+
import { AutocompleteInteraction, ButtonInteraction, ChannelSelectMenuInteraction, ChatInputCommandInteraction, MentionableSelectMenuInteraction, Message, MessageContextMenuCommandInteraction, ModalSubmitInteraction, RoleSelectMenuInteraction, SelectMenuInteraction, StringSelectMenuInteraction, UserContextMenuCommandInteraction, UserSelectMenuInteraction } from 'discord.js';
|
|
2
2
|
import { NecordEvents } from '../listeners/listener.interface';
|
|
3
3
|
export type AutocompleteContext = [AutocompleteInteraction];
|
|
4
4
|
export type SlashCommandContext = [ChatInputCommandInteraction];
|
|
@@ -7,5 +7,16 @@ export type MessageCommandContext = [MessageContextMenuCommandInteraction];
|
|
|
7
7
|
export type UserCommandContext = [UserContextMenuCommandInteraction];
|
|
8
8
|
export type ModalContext = [ModalSubmitInteraction];
|
|
9
9
|
export type ButtonContext = [ButtonInteraction];
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated since v5.4 - old name for `StringSelectContext`. Will be removed in v6. Discord now uses new select menus
|
|
12
|
+
* @see {@link https://discord.js.org/#/docs/discord.js/main/class/SelectMenuInteraction DiscordJS docs}
|
|
13
|
+
* @see {@link https://discord.com/developers/docs/interactions/message-components#select-menus Discord API docs}
|
|
14
|
+
* @see {@link https://discord.com/developers/docs/interactions/message-components#component-object-component-types ComponentType}
|
|
15
|
+
*/
|
|
10
16
|
export type SelectMenuContext = [SelectMenuInteraction];
|
|
17
|
+
export type StringSelectContext = [StringSelectMenuInteraction];
|
|
18
|
+
export type ChannelSelectContext = [ChannelSelectMenuInteraction];
|
|
19
|
+
export type RoleSelectContext = [RoleSelectMenuInteraction];
|
|
20
|
+
export type UserSelectContext = [UserSelectMenuInteraction];
|
|
21
|
+
export type MentionableSelectContext = [MentionableSelectMenuInteraction];
|
|
11
22
|
export type ContextOf<K extends keyof E, E = NecordEvents> = E[K];
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
import { ChannelSelectMenuInteraction, MentionableSelectMenuInteraction, RoleSelectMenuInteraction, UserSelectMenuInteraction } from 'discord.js';
|
|
1
2
|
export declare const SelectedStrings: (...dataOrPipes: any[]) => ParameterDecorator;
|
|
2
3
|
export declare const SelectedChannels: (...dataOrPipes: any[]) => ParameterDecorator;
|
|
4
|
+
export type ISelectedChannels = ChannelSelectMenuInteraction['channels'];
|
|
3
5
|
export declare const SelectedUsers: (...dataOrPipes: any[]) => ParameterDecorator;
|
|
6
|
+
export type ISelectedUsers = UserSelectMenuInteraction['users'] | MentionableSelectMenuInteraction['users'];
|
|
4
7
|
export declare const SelectedMembers: (...dataOrPipes: any[]) => ParameterDecorator;
|
|
8
|
+
export type ISelectedMembers = UserSelectMenuInteraction['members'] | MentionableSelectMenuInteraction['members'];
|
|
5
9
|
export declare const SelectedRoles: (...dataOrPipes: any[]) => ParameterDecorator;
|
|
10
|
+
export type ISelectedRoles = RoleSelectMenuInteraction['roles'] | MentionableSelectMenuInteraction['roles'];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "necord",
|
|
3
3
|
"description": "A module for creating Discord bots using NestJS, based on Discord.js.",
|
|
4
|
-
"version": "5.4.
|
|
4
|
+
"version": "5.4.2",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "rimraf -rf dist && tsc -p tsconfig.json",
|
|
7
7
|
"prepublish:npm": "npm run build",
|
|
@@ -53,27 +53,27 @@
|
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@commitlint/cli": "17.3.0",
|
|
55
55
|
"@commitlint/config-angular": "17.3.0",
|
|
56
|
-
"@favware/npm-deprecate": "1.0.
|
|
57
|
-
"@nestjs/common": "9.2.
|
|
58
|
-
"@nestjs/core": "9.2.
|
|
59
|
-
"@types/node": "18.11.
|
|
60
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
61
|
-
"@typescript-eslint/parser": "5.
|
|
62
|
-
"discord-api-types": "0.37.
|
|
63
|
-
"discord.js": "14.7.
|
|
64
|
-
"eslint": "8.
|
|
56
|
+
"@favware/npm-deprecate": "1.0.7",
|
|
57
|
+
"@nestjs/common": "9.2.1",
|
|
58
|
+
"@nestjs/core": "9.2.1",
|
|
59
|
+
"@types/node": "18.11.12",
|
|
60
|
+
"@typescript-eslint/eslint-plugin": "5.46.0",
|
|
61
|
+
"@typescript-eslint/parser": "5.46.0",
|
|
62
|
+
"discord-api-types": "0.37.21",
|
|
63
|
+
"discord.js": "14.7.1",
|
|
64
|
+
"eslint": "8.29.0",
|
|
65
65
|
"eslint-config-prettier": "8.5.0",
|
|
66
66
|
"eslint-plugin-prettier": "4.2.1",
|
|
67
67
|
"husky": "8.0.2",
|
|
68
68
|
"jest": "29.3.1",
|
|
69
|
-
"lint-staged": "13.0
|
|
70
|
-
"prettier": "2.8.
|
|
69
|
+
"lint-staged": "13.1.0",
|
|
70
|
+
"prettier": "2.8.1",
|
|
71
71
|
"reflect-metadata": "0.1.13",
|
|
72
|
-
"release-it": "15.5.
|
|
72
|
+
"release-it": "15.5.1",
|
|
73
73
|
"rimraf": "3.0.2",
|
|
74
|
-
"rxjs": "7.
|
|
74
|
+
"rxjs": "7.6.0",
|
|
75
75
|
"ts-node": "10.9.1",
|
|
76
|
-
"typescript": "4.9.
|
|
76
|
+
"typescript": "4.9.4"
|
|
77
77
|
},
|
|
78
78
|
"peerDependencies": {
|
|
79
79
|
"@nestjs/common": "^8.0.0 || ^9.0.0",
|