Skip to content

Commit

Permalink
chore: 6.2.0 version (#951)
Browse files Browse the repository at this point in the history
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Haxet  <[email protected]>
Co-authored-by: Haxet <[email protected]>
Co-authored-by: YstNeris <[email protected]>
  • Loading branch information
4 people authored Oct 23, 2023
1 parent 1c39c27 commit f656ef4
Show file tree
Hide file tree
Showing 78 changed files with 3,756 additions and 3,696 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ insert_final_newline = true
indent_size = 4
max_line_length = 140

[*.{yaml, yml}]
[*.{yaml,yml}]
indent_style = space
indent_size = 2

Expand Down
7 changes: 4 additions & 3 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
custom:
- https://paypal.me/socketsomeone
- https://www.tinkoff.ru/rm/filippov.aleksey372/YN6Ob51146
# These are supported funding model platforms

github: [SocketSomeone, necordjs]
open_collective: necord
6 changes: 3 additions & 3 deletions .github/workflows/auto-deprecate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Node v16
- name: Install Node v18
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
cache: yarn
cache-dependency-path: yarn.lock

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
# a pull request then we can check out the head.
fetch-depth: 2

# Initializes the CodeQL tools for scanning.
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Node v16
- name: Install Node v18
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
cache: yarn
cache-dependency-path: yarn.lock

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/label-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Run Label Sync
uses: crazy-max/ghaction-github-labeler@v4
uses: crazy-max/ghaction-github-labeler@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
action:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v3
- uses: dessant/lock-threads@v4
with:
github-token: ${{ github.token }}
issue-inactive-days: '90'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Node v16
- name: Install Node v18
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
registry-url: https://registry.npmjs.org/
cache: yarn
cache-dependency-path: yarn.lock
Expand Down
1 change: 0 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
.vscode
.github
docs
integration
sample
src
test
Expand Down
240 changes: 240 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,246 @@
# Changelog
All notable changes to this project will be documented in this file.

# [6.2.0](https://github.com/necordjs/necord/compare/v6.1.8...v6.2.0) - (2023-10-23)

## Refactor

- Use modules for listeners and explorer ([4759617](https://github.com/necordjs/necord/commit/475961792dc4fd4b957720aebc935b5a7dad01c1))

# [6.1.8](https://github.com/necordjs/necord/compare/v6.1.7...v6.1.8) - (2023-10-09)

## Bug Fixes

- Remove type of member permissions from subcommand and groups ([df4683e](https://github.com/necordjs/necord/commit/df4683ef1dc70747e754d711283d2fcd17b05a29))

# [6.1.5](https://github.com/necordjs/necord/compare/v6.1.4...v6.1.5) - (2023-09-26)

## Bug Fixes

- Remove rewrite prototype of default value ([263ca68](https://github.com/necordjs/necord/commit/263ca682ee533d1e4d635e065a41dabfbd7a2e11))

# [6.1.4](https://github.com/necordjs/necord/compare/v6.1.3...v6.1.4) - (2023-09-06)

## Features

- **slash-command-discovery:** Add getters for subcommands ([1851628](https://github.com/necordjs/necord/commit/1851628f35bdc200f6a4e80e8ed0bce239ed33ba))

# [6.1.3](https://github.com/necordjs/necord/compare/v6.1.2...v6.1.3) - (2023-09-01)

## Bug Fixes

- Grouping subcommands and commands ([823a48e](https://github.com/necordjs/necord/commit/823a48e057043f9696704aa801b8eff55f9178de))

# [6.1.2](https://github.com/necordjs/necord/compare/v6.1.1...v6.1.2) - (2023-08-29)

## Refactor

- Update types for nest version ([d9d1578](https://github.com/necordjs/necord/commit/d9d15780f1cb8745b7f3215bfb2b31115da29f76))

# [6.1.0](https://github.com/necordjs/necord/compare/v6.0.0...v6.1.0) - (2023-08-21)

## Refactor

- Rename file with module definition ([cb80c95](https://github.com/necordjs/necord/commit/cb80c9559b4584f4fa3393933ebb52fcd76025e6))
- Options metadata keys ([854259a](https://github.com/necordjs/necord/commit/854259a2b5c963827e6bf82cea5ea33e43517043))
- Explorer use not deprecated methods ([1cfcd0d](https://github.com/necordjs/necord/commit/1cfcd0dfbadcd1dd95d57fec87dcfa768a2cabe2))
- **text-commands:** Use reflector decorator ([4288fed](https://github.com/necordjs/necord/commit/4288fed3e5908f325190acde0f5f55227f92f63e))
- **modals:** Use reflector decorator ([58f287a](https://github.com/necordjs/necord/commit/58f287a28a44f0a07ad445a4b9d27f3b143effc9))
- **message-components:** Use reflector decorator ([7b6fc67](https://github.com/necordjs/necord/commit/7b6fc677afbd1cccd235e1c16fc34de782111418))
- **listeners:** Use reflector decorator ([eef900d](https://github.com/necordjs/necord/commit/eef900d7730bb90bcaa76a88056ee7aab1d6898d))
- **slash-commands:** Use reflector decorator ([11ed8c1](https://github.com/necordjs/necord/commit/11ed8c1ffea728a09d6d0b53868f7d22d444f873))
- **context-menus:** Use reflector decorator ([4b41186](https://github.com/necordjs/necord/commit/4b411864313ad39d583bba8bf1239f269e1e815b))

# [6.0.0](https://github.com/necordjs/necord/compare/v5.9.0...v6.0.0) - (2023-07-22)

## Bug Fixes

- Add error stack for log ([3f29fa0](https://github.com/necordjs/necord/commit/3f29fa08dbbc064ea5a03285e8db580d10166759))

## Refactor

- Make life cycle methods as private ([b758b8a](https://github.com/necordjs/necord/commit/b758b8a4b6c4e8b2aedbc194e5adbd8941cfefbe))
- Make cached discovery data as public ([fc180b9](https://github.com/necordjs/necord/commit/fc180b9bcb529d69a1cda0c8e909816df0cb8532))
- **BREAKING CHANGE:** `.getCommands()` methods removed
- Remove deprecated interfaces, decorators and comments ([8a72279](https://github.com/necordjs/necord/commit/8a72279d439eca2269503d206d57f0677260d77f))
- **BREAKING CHANGE:** `@Values` and `@SelectMenu` removed
- **Refs:** #515
- Use typeguards from djs ([c71cdd4](https://github.com/necordjs/necord/commit/c71cdd4aadd58d2ab809a8f46a99ddea3dcdcf38))

## Testing

- Change env ([0b33892](https://github.com/necordjs/necord/commit/0b33892e592cddf6634a77757f1cf75ec87c56c4))

# [5.9.0](https://github.com/necordjs/necord/compare/v5.8.7...v5.9.0) - (2023-07-22)

## Features

- Add webhook events (#827) ([ef23133](https://github.com/necordjs/necord/commit/ef2313394d065e63fc1e0da05adb36d5084f0b99))
- Add get methods and use collection instead of maps ([8a45056](https://github.com/necordjs/necord/commit/8a4505641f7847f5570ea0596c23b2a6f937b136))

## Refactor

- Use target type from deconstruct ([4f1e6bd](https://github.com/necordjs/necord/commit/4f1e6bd2b2f30de6939eea1276ed838591019cfb))

## Styling

- Remove unused imports ([ab1c420](https://github.com/necordjs/necord/commit/ab1c420bb4b165bcf47c013dff0a050d145a626a))
- Use curly brackets for switch-case ([81ebbb0](https://github.com/necordjs/necord/commit/81ebbb0ff7ab6a28d32ff4eef78169d47352a608))

# [5.8.4](https://github.com/necordjs/necord/compare/v5.8.3...v5.8.4) - (2023-05-10)

## Bug Fixes

- Register commands to guild ([7f215de](https://github.com/necordjs/necord/commit/7f215de8a17e7b971442744f9692299312ac4f74))

# [5.8.3](https://github.com/necordjs/necord/compare/v5.8.2...v5.8.3) - (2023-05-10)

## Bug Fixes

- Skip registering global when commands empty ([9925b02](https://github.com/necordjs/necord/commit/9925b027f78e25caad99854676a741fa7068f752))

# [5.8.1](https://github.com/necordjs/necord/compare/v5.8.0...v5.8.1) - (2023-05-10)

## Bug Fixes

- Allow register command when getting error ([f872895](https://github.com/necordjs/necord/commit/f872895b99d87435a49f951a325bec9b8347f9b4))

# [5.8.0](https://github.com/necordjs/necord/compare/v5.7.3...v5.8.0) - (2023-04-25)

## Features

- Add methods for discovery #710 ([783bb98](https://github.com/necordjs/necord/commit/783bb986e593222b0c5d03ab980d5cc15517311a))

## Refactor

- Rename interface ([71e6bee](https://github.com/necordjs/necord/commit/71e6beefdc4fb260a8b9b57f4a0f9d284f1be8dc))

# [5.7.3](https://github.com/necordjs/necord/compare/v5.7.2...v5.7.3) - (2023-04-17)

## Refactor

- Export explorer and another providers ([d1d385d](https://github.com/necordjs/necord/commit/d1d385dda060da7d9d7b2963e14b401ac8a67802))

# [5.7.1](https://github.com/necordjs/necord/compare/v5.7.0...v5.7.1) - (2023-04-13)

## Refactor

- Split global commands to all command ([cace782](https://github.com/necordjs/necord/commit/cace782a76de005797b96c71a480a4df9a7fa932))

## Styling

- Lint ([f21ada2](https://github.com/necordjs/necord/commit/f21ada2a2f6a2b1e277a49ae6abf97e8a4de421e))

# [5.7.0](https://github.com/necordjs/necord/compare/v5.6.1...v5.7.0) - (2023-04-13)

## Features

- Add commands service methods for get commands ([34a58f7](https://github.com/necordjs/necord/commit/34a58f793a8cb2b93b988bc0e16324bb34755747))

# [5.6.1](https://github.com/necordjs/necord/compare/v5.6.0...v5.6.1) - (2023-04-13)

## Refactor

- Rename guild audit logs event names ([af91ac7](https://github.com/necordjs/necord/commit/af91ac7b8f39d7fc890baef3c9c95fa974fc6dab))

# [5.6.0](https://github.com/necordjs/necord/compare/v5.5.4...v5.6.0) - (2023-04-13)

## Refactor

- Update position of switch-case ([dd63a25](https://github.com/necordjs/necord/commit/dd63a250d0aec10c5a92e7bbb007e4fe1fc12dfe))

# [5.5.4](https://github.com/necordjs/necord/compare/v5.5.3...v5.5.4) - (2023-04-03)

## Bug Fixes

- Add tsconfig for build and tests ([2abef6c](https://github.com/necordjs/necord/commit/2abef6c9c0a75344b56b743d121493551cf88726))

# [5.5.3](https://github.com/necordjs/necord/compare/v5.5.2...v5.5.3) - (2023-04-01)

## Testing

- Include tsconfig tests ([be370ec](https://github.com/necordjs/necord/commit/be370ec08752164361d00207306051e9df6d4352))

# [5.5.0](https://github.com/necordjs/necord/compare/v5.4.8...v5.5.0) - (2023-03-09)

## Bug Fixes

- Remove extras ([318e5dd](https://github.com/necordjs/necord/commit/318e5ddd43059b01dc078bd68523df637bad8300))

## Features

- Add rest provider ([85a9c33](https://github.com/necordjs/necord/commit/85a9c33a78d2b76f791d26346073746515674722))

## Styling

- Lint ([56a59f8](https://github.com/necordjs/necord/commit/56a59f8cb140d3df891d1cb56bc942de6ef4d8fc))

# [5.4.8](https://github.com/necordjs/necord/compare/v5.4.7...v5.4.8) - (2023-02-28)

## Features

- Add configurable module class ([8af0f0d](https://github.com/necordjs/necord/commit/8af0f0d5a70c17b3eee78d7cf8860208c26c5d79))

## Styling

- Remove imports ([b115aa0](https://github.com/necordjs/necord/commit/b115aa040eaf87fbdaf41681153f601072e4d5c9))

# [5.4.7](https://github.com/necordjs/necord/compare/v5.4.6...v5.4.7) - (2023-02-28)

## Bug Fixes

- Change bypass types ([b5d890a](https://github.com/necordjs/necord/commit/b5d890add5613252c63464ac969226f78630a554))

## Styling

- Lint ([cebd133](https://github.com/necordjs/necord/commit/cebd13320f0f429910497fa813c098d687fb82d3))

# [5.4.6](https://github.com/necordjs/necord/compare/v5.4.5...v5.4.6) - (2023-02-26)

## Features

- Add warnings for duplicate registrations (#635) ([b8596c8](https://github.com/necordjs/necord/commit/b8596c881632a1c6b8509575b39b37377b4becc7))

# [5.4.5](https://github.com/necordjs/necord/compare/v5.4.4...v5.4.5) - (2023-02-08)

## Bug Fixes

- Select menu specs (#563) ([769f08b](https://github.com/necordjs/necord/commit/769f08b703e9262fe38a424cb9379559187a0c5e))

# [5.4.0](https://github.com/necordjs/necord/compare/v5.3.1...v5.4.0) - (2022-11-29)

## Refactor

- Some improvments ([665c8e2](https://github.com/necordjs/necord/commit/665c8e277fc5d7d481e5740069fa51b4ebf7be84))

# [5.3.1](https://github.com/necordjs/necord/compare/v5.3.0...v5.3.1) - (2022-11-26)

## Features

- Target decorators for message, user, member ([47ccc2a](https://github.com/necordjs/necord/commit/47ccc2a7968c726c990ba5b66f54c267681bb777))

# [5.3.0](https://github.com/necordjs/necord/compare/v5.2.0...v5.3.0) - (2022-09-17)

## Features

- **modal:** Add dynamic matching (#385) ([96a0c8f](https://github.com/necordjs/necord/commit/96a0c8ff235655fff3838e0e5e78b12cdd50f3fa))

# [5.2.0](https://github.com/necordjs/necord/compare/v5.1.0...v5.2.0) - (2022-08-11)

## Features

- Add get guilds method and guilds property (#352) ([487caf2](https://github.com/necordjs/necord/commit/487caf2fdefed98c558518f5fedcac63cb4f528d))

# [5.1.0](https://github.com/necordjs/necord/compare/v5.0.3...v5.1.0) - (2022-07-31)

## Bug Fixes

- Usage without data parameter for `ComponentParam` ([8c7ce11](https://github.com/necordjs/necord/commit/8c7ce11d620134d4f8e8e4dac9cb56984d1e0917))

## Features

- Support dynamic matching for components ([1b470b3](https://github.com/necordjs/necord/commit/1b470b3ee80db37d285ee010153431e2a5847627))

# [5.0.1](https://github.com/necordjs/necord/compare/v4.3.3...v5.0.1) - (2022-07-17)

## Bug Fixes
Expand Down
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@
</div>


<br/>

<p align="center">
<a href='https://img.shields.io/npm/v/necord'><img src="https://img.shields.io/npm/v/necord" alt="NPM Version" /></a>
<a href='https://img.shields.io/npm/l/necord'><img src="https://img.shields.io/npm/l/necord" alt="NPM License" /></a>
<a href='https://img.shields.io/npm/dm/necord'><img src="https://img.shields.io/npm/dm/necord" alt="NPM Downloads" /></a>
<a href='https://img.shields.io/github/last-commit/necordjs/necord'><img src="https://img.shields.io/github/last-commit/SocketSomeone/necord" alt="Last commit" /></a>
</p>


## About
Expand Down Expand Up @@ -43,13 +51,12 @@ Once the installation process is complete, we can import the `NecordModule` into
```typescript
import { NecordModule } from 'necord';
import { Module } from '@nestjs/common';
import { Intents } from 'discord.js';

@Module({
imports: [
NecordModule.forRoot({
token: 'DISCORD_BOT_TOKEN',
intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES, Intents.FLAGS.DIRECT_MESSAGES]
intents: ['Guilds', 'GuildMessages', 'DirectMessages']
})
],
providers: []
Expand Down Expand Up @@ -93,6 +100,10 @@ If you want to fully dive into Necord check out these resources:
* [Discord JS](https://discord.js.org) - The most powerful library for creating bots.
* [Discord API](https://discord.com/developers/docs) - Official documentation of Discord API.

## Backers

<a href="https://opencollective.com/necord" target="_blank"><img src="https://opencollective.com/necord/backers.svg?width=1000"></a>

## Stay in touch

* Author - [Alexey Filippov](https://t.me/socketsomeone)
Expand Down
Loading

0 comments on commit f656ef4

Please sign in to comment.