Skip to content

Commit f43ceee

Browse files
committed
release 4.6.1
1 parent 83fcde5 commit f43ceee

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

.github/workflows/node.js.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,21 @@ jobs:
1616
matrix:
1717
node-version: ["14.x", "16.x", "17.x"]
1818
steps:
19-
- uses: actions/checkout@v2
19+
- uses: actions/checkout@v3
2020
- name: Use Node.js ${{ matrix.node-version }}
21-
uses: actions/setup-node@v2
21+
uses: actions/setup-node@v3
2222
with:
2323
node-version: ${{ matrix.node-version }}
2424
cache: 'npm'
2525
- name: Initialize CodeQL
26-
uses: github/codeql-action/init@v1
26+
uses: github/codeql-action/init@v2
2727
- run: |
2828
npm install
2929
node ./node_modules/ts-node/dist/bin.js ./build/copyfiles.ts
3030
node ./node_modules/typescript/bin/tsc
3131
- name: Perform CodeQL Analysis
32-
uses: github/codeql-action/analyze@v1
33-
- uses: MontyD/package-json-updated-action@1.0.1
32+
uses: github/codeql-action/analyze@v2
33+
- uses: JiPaix/package-json-updated-action@v1.0.5
3434
id: version-updated
3535
with:
3636
path: package.json
@@ -41,8 +41,8 @@ jobs:
4141
if: github.ref == 'refs/heads/main' && needs.build.outputs.has-updated
4242
runs-on: ubuntu-latest
4343
steps:
44-
- uses: actions/checkout@v2
45-
- uses: actions/setup-node@v2
44+
- uses: actions/checkout@v3
45+
- uses: actions/setup-node@v3
4646
with:
4747
node-version: "16.x"
4848
registry-url: 'https://registry.npmjs.org'

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Changelog
2-
## [v4.6.0](https://github.com/jipaix/xdccjs/tree/v4.6.0)
2+
## [v4.6.1](https://github.com/jipaix/xdccjs/tree/v4.6.1)
33
### Feat(lib)
44
* add 'debug' event
55
### Fix(lib+cli)

build/changelog.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/* eslint-disable comma-dangle */
22
/* eslint-disable import/no-extraneous-dependencies */
33
import axios, { AxiosResponse } from 'axios';
4+
import type { TextChannel } from 'discord.js';
45
import {
56
APIEmbedField, Channel, Client, EmbedBuilder, GatewayIntentBits
67
} from 'discord.js';
@@ -94,8 +95,8 @@ function postToDiscord():Promise<void> {
9495
if (!chan) return reject(new Error('couldn\'t find channel'));
9596
if (!chan.isTextBased()) return reject(new Error('channel is not text based'));
9697
try {
97-
await chan.send('@everyone');
98-
await chan.send({ embeds: [embed] });
98+
await (chan as TextChannel).send('@everyone');
99+
await (chan as TextChannel).send({ embeds: [embed] });
99100
discord.off('error', reject);
100101
discord.destroy();
101102
return resolve();

0 commit comments

Comments
 (0)