Compare commits

..

88 Commits

Author SHA1 Message Date
f14cd6fd2b Version 0.5.10 2025-06-14 09:06:35 +03:00
69b0becf83 Add version 0.5.10 to CHANGELOG 2025-06-14 09:04:41 +03:00
b1cc21749a Dependencies Update 2025-06-14 08:59:18 +03:00
447e16ee1d NodeJS 22 Update 2025-06-14 08:58:34 +03:00
223b7e3eba Merge pull request #1087 from warengroup/dependabot/npm_and_yarn/develop/discord.js-14.19.3
Bump discord.js from 14.19.2 to 14.19.3
2025-05-05 09:11:50 +00:00
f8e1aea696 Bump discord.js from 14.19.2 to 14.19.3
Bumps [discord.js](https://github.com/discordjs/discord.js/tree/HEAD/packages/discord.js) from 14.19.2 to 14.19.3.
- [Release notes](https://github.com/discordjs/discord.js/releases)
- [Changelog](https://github.com/discordjs/discord.js/blob/14.19.3/packages/discord.js/CHANGELOG.md)
- [Commits](https://github.com/discordjs/discord.js/commits/14.19.3/packages/discord.js)

---
updated-dependencies:
- dependency-name: discord.js
  dependency-version: 14.19.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-05 09:11:41 +00:00
dd0861e861 Merge pull request #1086 from warengroup/dependabot/npm_and_yarn/develop/discord.js-14.19.2
Bump discord.js from 14.19.1 to 14.19.2
2025-04-29 08:10:37 +00:00
ca11b925b8 Bump discord.js from 14.19.1 to 14.19.2
Bumps [discord.js](https://github.com/discordjs/discord.js/tree/HEAD/packages/discord.js) from 14.19.1 to 14.19.2.
- [Release notes](https://github.com/discordjs/discord.js/releases)
- [Changelog](https://github.com/discordjs/discord.js/blob/14.19.2/packages/discord.js/CHANGELOG.md)
- [Commits](https://github.com/discordjs/discord.js/commits/14.19.2/packages/discord.js)

---
updated-dependencies:
- dependency-name: discord.js
  dependency-version: 14.19.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-29 08:10:26 +00:00
38084c1572 Merge pull request #1085 from warengroup/dependabot/npm_and_yarn/develop/discord.js-14.19.1
Bump discord.js from 14.18.0 to 14.19.1
2025-04-28 08:30:21 +00:00
c5063a074c Bump discord.js from 14.18.0 to 14.19.1
Bumps [discord.js](https://github.com/discordjs/discord.js/tree/HEAD/packages/discord.js) from 14.18.0 to 14.19.1.
- [Release notes](https://github.com/discordjs/discord.js/releases)
- [Changelog](https://github.com/discordjs/discord.js/blob/14.19.1/packages/discord.js/CHANGELOG.md)
- [Commits](https://github.com/discordjs/discord.js/commits/14.19.1/packages/discord.js)

---
updated-dependencies:
- dependency-name: discord.js
  dependency-version: 14.19.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-28 08:30:09 +00:00
545e37bbd3 Merge pull request #1084 from warengroup/dependabot/npm_and_yarn/develop/dotenv-16.5.0
Bump dotenv from 16.4.7 to 16.5.0
2025-04-11 08:22:03 +00:00
58df0cd51a Bump dotenv from 16.4.7 to 16.5.0
Bumps [dotenv](https://github.com/motdotla/dotenv) from 16.4.7 to 16.5.0.
- [Changelog](https://github.com/motdotla/dotenv/blob/master/CHANGELOG.md)
- [Commits](https://github.com/motdotla/dotenv/compare/v16.4.7...v16.5.0)

---
updated-dependencies:
- dependency-name: dotenv
  dependency-version: 16.5.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-11 08:21:52 +00:00
cd868aa254 Merge pull request #1083 from warengroup/dependabot/npm_and_yarn/develop/typescript-5.8.3
Bump typescript from 5.8.2 to 5.8.3
2025-04-07 08:49:21 +00:00
bcf179358b Bump typescript from 5.8.2 to 5.8.3
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.8.2 to 5.8.3.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release-publish.yml)
- [Commits](https://github.com/microsoft/TypeScript/commits)

---
updated-dependencies:
- dependency-name: typescript
  dependency-version: 5.8.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-07 08:49:10 +00:00
aa41403df6 Merge pull request #1082 from warengroup/dependabot/npm_and_yarn/develop/typescript-5.8.2
Bump typescript from 5.7.3 to 5.8.2
2025-03-03 08:56:15 +00:00
950e3749c9 Bump typescript from 5.7.3 to 5.8.2
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.7.3 to 5.8.2.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.7.3...v5.8.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-03 08:56:01 +00:00
d8248795d5 Merge pull request #1081 from warengroup/dependabot/github_actions/develop/docker/setup-buildx-action-3.10.0
Bump docker/setup-buildx-action from 3.9.0 to 3.10.0
2025-02-27 08:39:47 +00:00
b8eadb7ea7 Bump docker/setup-buildx-action from 3.9.0 to 3.10.0
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 3.9.0 to 3.10.0.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/v3.9.0...v3.10.0)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-27 08:39:36 +00:00
ed8ebc8b33 Bumb Version 2025-02-23 13:12:15 +02:00
6ee765733b Version 0.5.9 2025-02-23 13:11:23 +02:00
f93b708444 Add version 0.5.9 to CHANGELOG 2025-02-23 13:08:58 +02:00
eb58cda826 Dependencies Update 2025-02-23 13:00:08 +02:00
6ac3f83bb1 Replace ephemeral option with flag in replies. 2025-02-23 12:57:01 +02:00
9a681bde9e Merge pull request #1079 from warengroup/dependabot/npm_and_yarn/develop/discord.js-14.18.0
Bump discord.js from 14.17.3 to 14.18.0
2025-02-11 08:05:28 +00:00
e2f8533dfe Bump discord.js from 14.17.3 to 14.18.0
Bumps [discord.js](https://github.com/discordjs/discord.js/tree/HEAD/packages/discord.js) from 14.17.3 to 14.18.0.
- [Release notes](https://github.com/discordjs/discord.js/releases)
- [Changelog](https://github.com/discordjs/discord.js/blob/14.18.0/packages/discord.js/CHANGELOG.md)
- [Commits](https://github.com/discordjs/discord.js/commits/14.18.0/packages/discord.js)

---
updated-dependencies:
- dependency-name: discord.js
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-11 08:05:15 +00:00
0d322dae14 Merge pull request #1078 from warengroup/dependabot/github_actions/develop/docker/setup-buildx-action-3.9.0
Bump docker/setup-buildx-action from 3.8.0 to 3.9.0
2025-02-07 08:57:52 +00:00
fc4bbeacaf Bump docker/setup-buildx-action from 3.8.0 to 3.9.0
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 3.8.0 to 3.9.0.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/v3.8.0...v3.9.0)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-07 08:57:40 +00:00
565daab38e Merge pull request #1077 from warengroup/dependabot/npm_and_yarn/develop/typescript-5.7.3
Bump typescript from 5.7.2 to 5.7.3
2025-01-10 08:05:56 +00:00
3a0f3fbe48 Bump typescript from 5.7.2 to 5.7.3
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.7.2 to 5.7.3.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.7.2...v5.7.3)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-10 08:05:43 +00:00
aa9e7c1191 Merge pull request #1076 from warengroup/dependabot/npm_and_yarn/develop/discord.js-14.17.3
Bump discord.js from 14.17.2 to 14.17.3
2025-01-08 08:54:21 +00:00
80248d3d1b Bump discord.js from 14.17.2 to 14.17.3
Bumps [discord.js](https://github.com/discordjs/discord.js/tree/HEAD/packages/discord.js) from 14.17.2 to 14.17.3.
- [Release notes](https://github.com/discordjs/discord.js/releases)
- [Changelog](https://github.com/discordjs/discord.js/blob/14.17.3/packages/discord.js/CHANGELOG.md)
- [Commits](https://github.com/discordjs/discord.js/commits/14.17.3/packages/discord.js)

---
updated-dependencies:
- dependency-name: discord.js
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-08 08:54:07 +00:00
78bf44e1cb Merge pull request #1075 from warengroup/dependabot/npm_and_yarn/develop/discord.js-14.17.2
Bump discord.js from 14.16.3 to 14.17.2
2025-01-02 08:34:46 +00:00
7f9e963af4 Bump discord.js from 14.16.3 to 14.17.2
Bumps [discord.js](https://github.com/discordjs/discord.js/tree/HEAD/packages/discord.js) from 14.16.3 to 14.17.2.
- [Release notes](https://github.com/discordjs/discord.js/releases)
- [Changelog](https://github.com/discordjs/discord.js/blob/14.17.2/packages/discord.js/CHANGELOG.md)
- [Commits](https://github.com/discordjs/discord.js/commits/14.17.2/packages/discord.js)

---
updated-dependencies:
- dependency-name: discord.js
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-02 08:34:34 +00:00
300406ac8e Update copyright year 2025-01-01 18:00:54 +02:00
18b71794e7 Merge pull request #1074 from warengroup/dependabot/github_actions/develop/docker/setup-buildx-action-3.8.0
Bump docker/setup-buildx-action from 3.7.1 to 3.8.0
2024-12-17 08:14:52 +00:00
c6e249291d Bump docker/setup-buildx-action from 3.7.1 to 3.8.0
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 3.7.1 to 3.8.0.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/v3.7.1...v3.8.0)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-17 08:14:40 +00:00
049c3195b4 Merge pull request #1072 from warengroup/dependabot/npm_and_yarn/develop/dotenv-16.4.7
Bump dotenv from 16.4.6 to 16.4.7
2024-12-04 08:34:20 +00:00
c44eaf1256 Bump dotenv from 16.4.6 to 16.4.7
Bumps [dotenv](https://github.com/motdotla/dotenv) from 16.4.6 to 16.4.7.
- [Changelog](https://github.com/motdotla/dotenv/blob/master/CHANGELOG.md)
- [Commits](https://github.com/motdotla/dotenv/compare/v16.4.6...v16.4.7)

---
updated-dependencies:
- dependency-name: dotenv
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-04 08:34:05 +00:00
889dba29d2 Merge pull request #1071 from warengroup/dependabot/npm_and_yarn/develop/dotenv-16.4.6
Bump dotenv from 16.4.5 to 16.4.6
2024-12-03 08:47:38 +00:00
170c5af188 Bump dotenv from 16.4.5 to 16.4.6
Bumps [dotenv](https://github.com/motdotla/dotenv) from 16.4.5 to 16.4.6.
- [Changelog](https://github.com/motdotla/dotenv/blob/master/CHANGELOG.md)
- [Commits](https://github.com/motdotla/dotenv/compare/v16.4.5...v16.4.6)

---
updated-dependencies:
- dependency-name: dotenv
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-03 08:47:19 +00:00
6e32773a35 Merge pull request #1070 from warengroup/dependabot/npm_and_yarn/develop/typescript-5.7.2
Bump typescript from 5.6.3 to 5.7.2
2024-11-25 08:14:28 +00:00
fb260aa53d Bump typescript from 5.6.3 to 5.7.2
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.6.3 to 5.7.2.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.6.3...v5.7.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-25 08:14:16 +00:00
654833a0cb Merge pull request #1069 from warengroup/dependabot/npm_and_yarn/develop/discordjs/voice-0.18.0
Bump @discordjs/voice from 0.17.0 to 0.18.0
2024-11-18 08:11:10 +00:00
e5ecfb6174 Bump @discordjs/voice from 0.17.0 to 0.18.0
Bumps [@discordjs/voice](https://github.com/discordjs/discord.js/tree/HEAD/packages/voice) from 0.17.0 to 0.18.0.
- [Release notes](https://github.com/discordjs/discord.js/releases)
- [Changelog](https://github.com/discordjs/discord.js/blob/main/packages/voice/CHANGELOG.md)
- [Commits](https://github.com/discordjs/discord.js/commits/@discordjs/voice@0.18.0/packages/voice)

---
updated-dependencies:
- dependency-name: "@discordjs/voice"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-18 08:10:56 +00:00
be0bf170c4 Merge pull request #1068 from warengroup/dependabot/npm_and_yarn/develop/typescript-5.6.3
Bump typescript from 5.6.2 to 5.6.3
2024-10-09 08:34:59 +00:00
7114c5e629 Bump typescript from 5.6.2 to 5.6.3
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.6.2 to 5.6.3.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.6.2...v5.6.3)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-09 08:34:43 +00:00
7cfe6af287 Merge pull request #1067 from warengroup/dependabot/github_actions/develop/docker/setup-buildx-action-3.7.1
Bump docker/setup-buildx-action from 3.7.0 to 3.7.1
2024-10-04 08:47:24 +00:00
8f16a0b30d Bump docker/setup-buildx-action from 3.7.0 to 3.7.1
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 3.7.0 to 3.7.1.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/v3.7.0...v3.7.1)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-04 08:47:12 +00:00
ed8f977768 Merge pull request #1066 from warengroup/dependabot/github_actions/develop/docker/setup-buildx-action-3.7.0
Bump docker/setup-buildx-action from 3.6.1 to 3.7.0
2024-10-03 08:30:53 +00:00
e39b94881b Bump docker/setup-buildx-action from 3.6.1 to 3.7.0
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 3.6.1 to 3.7.0.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/v3.6.1...v3.7.0)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-03 08:30:40 +00:00
debfd82bbb Bumb Version 2024-09-30 13:35:42 +03:00
20361b0f6a Merge pull request #1049 from warengroup/develop
Version 0.5.8
2024-09-30 13:33:46 +03:00
09d8eb7c00 Add version 0.5.8 to CHANGELOG.md 2024-09-30 13:25:05 +03:00
973cd00c82 Fix typings 2024-09-30 13:22:31 +03:00
a1403d7047 Dependencies Update 2024-09-30 11:39:42 +03:00
5c44838b8a Fix 0.5.5-0.5.7 release years in CHANGELOG.md 2024-09-30 11:23:09 +03:00
718a10a991 Merge pull request #1064 from warengroup/dependabot/npm_and_yarn/develop/discord.js-14.16.3
Bump discord.js from 14.16.2 to 14.16.3
2024-09-30 08:10:06 +00:00
e423088e9d Bump discord.js from 14.16.2 to 14.16.3
Bumps [discord.js](https://github.com/discordjs/discord.js/tree/HEAD/packages/discord.js) from 14.16.2 to 14.16.3.
- [Release notes](https://github.com/discordjs/discord.js/releases)
- [Changelog](https://github.com/discordjs/discord.js/blob/main/packages/discord.js/CHANGELOG.md)
- [Commits](https://github.com/discordjs/discord.js/commits/14.16.3/packages/discord.js)

---
updated-dependencies:
- dependency-name: discord.js
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-30 08:09:52 +00:00
99a652abc7 Merge pull request #1063 from warengroup/dependabot/npm_and_yarn/develop/discord.js-14.16.2
Bump discord.js from 14.16.1 to 14.16.2
2024-09-13 08:47:54 +00:00
e3ca47c8e4 Bump discord.js from 14.16.1 to 14.16.2
Bumps [discord.js](https://github.com/discordjs/discord.js/tree/HEAD/packages/discord.js) from 14.16.1 to 14.16.2.
- [Release notes](https://github.com/discordjs/discord.js/releases)
- [Changelog](https://github.com/discordjs/discord.js/blob/main/packages/discord.js/CHANGELOG.md)
- [Commits](https://github.com/discordjs/discord.js/commits/14.16.2/packages/discord.js)

---
updated-dependencies:
- dependency-name: discord.js
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-13 08:47:42 +00:00
d1bc206f26 Merge pull request #1062 from warengroup/dependabot/npm_and_yarn/develop/typescript-5.6.2
Bump typescript from 5.5.4 to 5.6.2
2024-09-10 08:40:16 +00:00
b746f07927 Bump typescript from 5.5.4 to 5.6.2
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.5.4 to 5.6.2.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.5.4...v5.6.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-10 08:40:00 +00:00
ab8a11c8dc Merge pull request #1061 from warengroup/dependabot/npm_and_yarn/develop/discord.js-14.16.1
Bump discord.js from 14.15.3 to 14.16.1
2024-09-03 08:38:21 +00:00
afb07001f4 Bump discord.js from 14.15.3 to 14.16.1
Bumps [discord.js](https://github.com/discordjs/discord.js/tree/HEAD/packages/discord.js) from 14.15.3 to 14.16.1.
- [Release notes](https://github.com/discordjs/discord.js/releases)
- [Changelog](https://github.com/discordjs/discord.js/blob/main/packages/discord.js/CHANGELOG.md)
- [Commits](https://github.com/discordjs/discord.js/commits/14.16.1/packages/discord.js)

---
updated-dependencies:
- dependency-name: discord.js
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-03 08:38:05 +00:00
c9eb534f88 Merge pull request #1060 from warengroup/dependabot/npm_and_yarn/develop/libsodium-wrappers-0.7.15
Bump libsodium-wrappers from 0.7.14 to 0.7.15
2024-08-14 08:23:37 +00:00
08a6f2c78f Bump libsodium-wrappers from 0.7.14 to 0.7.15
Bumps [libsodium-wrappers](https://github.com/jedisct1/libsodium.js) from 0.7.14 to 0.7.15.
- [Commits](https://github.com/jedisct1/libsodium.js/compare/0.7.14...0.7.15)

---
updated-dependencies:
- dependency-name: libsodium-wrappers
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-14 08:23:23 +00:00
724ed6e44b Merge pull request #1059 from warengroup/dependabot/github_actions/develop/docker/setup-buildx-action-3.6.1
Bump docker/setup-buildx-action from 3.5.0 to 3.6.1
2024-07-30 08:04:01 +00:00
20b9b6179c Bump docker/setup-buildx-action from 3.5.0 to 3.6.1
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 3.5.0 to 3.6.1.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/v3.5.0...v3.6.1)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-30 08:03:48 +00:00
6ecf0eaab6 Merge pull request #1058 from warengroup/dependabot/github_actions/develop/docker/setup-buildx-action-3.5.0
Bump docker/setup-buildx-action from 3.4.0 to 3.5.0
2024-07-23 08:08:18 +00:00
5f42164b30 Bump docker/setup-buildx-action from 3.4.0 to 3.5.0
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 3.4.0 to 3.5.0.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/v3.4.0...v3.5.0)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-23 08:08:08 +00:00
d7a8ead5a3 Merge pull request #1057 from warengroup/dependabot/npm_and_yarn/develop/typescript-5.5.4
Bump typescript from 5.5.3 to 5.5.4
2024-07-23 08:02:22 +00:00
854b64d10a Bump typescript from 5.5.3 to 5.5.4
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.5.3 to 5.5.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v5.5.3...v5.5.4)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-23 08:02:10 +00:00
c3792b3b3c Documentation Update - Update Radio Stations list information in README 2024-07-22 11:07:18 +03:00
cf9de37b99 Merge pull request #1056 from warengroup/dependabot/npm_and_yarn/develop/libsodium-wrappers-0.7.14
Bump libsodium-wrappers from 0.7.13 to 0.7.14
2024-07-11 08:47:42 +00:00
011e41e3c1 Merge pull request #1055 from warengroup/dependabot/npm_and_yarn/develop/rimraf-6.0.1
Bump rimraf from 6.0.0 to 6.0.1
2024-07-11 08:47:36 +00:00
09287fab26 Bump libsodium-wrappers from 0.7.13 to 0.7.14
Bumps [libsodium-wrappers](https://github.com/jedisct1/libsodium.js) from 0.7.13 to 0.7.14.
- [Commits](https://github.com/jedisct1/libsodium.js/compare/0.7.13...0.7.14)

---
updated-dependencies:
- dependency-name: libsodium-wrappers
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-11 08:47:30 +00:00
45e68ce497 Bump rimraf from 6.0.0 to 6.0.1
Bumps [rimraf](https://github.com/isaacs/rimraf) from 6.0.0 to 6.0.1.
- [Changelog](https://github.com/isaacs/rimraf/blob/main/CHANGELOG.md)
- [Commits](https://github.com/isaacs/rimraf/compare/v6.0.0...v6.0.1)

---
updated-dependencies:
- dependency-name: rimraf
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-11 08:47:23 +00:00
7597917cb1 Merge pull request #1054 from warengroup/dependabot/npm_and_yarn/develop/rimraf-6.0.0
Bump rimraf from 5.0.8 to 6.0.0
2024-07-09 08:41:05 +00:00
04b9922854 Bump rimraf from 5.0.8 to 6.0.0
Bumps [rimraf](https://github.com/isaacs/rimraf) from 5.0.8 to 6.0.0.
- [Changelog](https://github.com/isaacs/rimraf/blob/main/CHANGELOG.md)
- [Commits](https://github.com/isaacs/rimraf/compare/v5.0.8...v6.0.0)

---
updated-dependencies:
- dependency-name: rimraf
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-09 08:40:50 +00:00
eeb5899eb1 Merge pull request #1053 from warengroup/dependabot/npm_and_yarn/develop/rimraf-5.0.8
Bump rimraf from 5.0.7 to 5.0.8
2024-07-08 08:25:12 +00:00
f773cbab8c Bump rimraf from 5.0.7 to 5.0.8
Bumps [rimraf](https://github.com/isaacs/rimraf) from 5.0.7 to 5.0.8.
- [Changelog](https://github.com/isaacs/rimraf/blob/main/CHANGELOG.md)
- [Commits](https://github.com/isaacs/rimraf/compare/v5.0.7...v5.0.8)

---
updated-dependencies:
- dependency-name: rimraf
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-08 08:24:57 +00:00
5be8d74353 Merge pull request #1052 from warengroup/dependabot/github_actions/develop/docker/setup-buildx-action-3.4.0
Bump docker/setup-buildx-action from 3.3.0 to 3.4.0
2024-07-04 08:16:15 +00:00
d2a675216b Bump docker/setup-buildx-action from 3.3.0 to 3.4.0
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 3.3.0 to 3.4.0.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/v3.3.0...v3.4.0)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-04 08:16:04 +00:00
a885f04179 Merge pull request #1051 from warengroup/dependabot/npm_and_yarn/develop/typescript-5.5.3
Bump typescript from 5.5.2 to 5.5.3
2024-07-02 08:37:27 +00:00
8f475e861c Bump typescript from 5.5.2 to 5.5.3
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.5.2 to 5.5.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v5.5.2...v5.5.3)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-02 08:37:14 +00:00
5f72e8e366 Merge pull request #1050 from warengroup/dependabot/npm_and_yarn/develop/typescript-5.5.2
Bump typescript from 5.4.5 to 5.5.2
2024-06-21 08:09:09 +00:00
263b807653 Bump typescript from 5.4.5 to 5.5.2
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.4.5 to 5.5.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v5.4.5...v5.5.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-21 08:08:56 +00:00
8eec6049af Bumb Version 2024-06-19 11:04:17 +03:00
25 changed files with 457 additions and 303 deletions

View File

@ -14,7 +14,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3.3.0
uses: docker/setup-buildx-action@v3.10.0
id: buildx
with:
install: true

View File

@ -1,6 +1,45 @@
# CHANGELOG
## 0.5.7 (19.6.2023)
## 0.5.10 (14.6.2025)
Patch Release
**Package**
- Dependencies Update
**Miscellaneous:**
- Dockerfile: Use NodeJS 22
**Contributors:**
[cwchristerw](<https://github.com/cwchristerw>)
## 0.5.9 (23.2.2025)
Patch Release
- Updating code, because Discord.js has deprecated few options previously used.
**Package**
- Dependencies Update
**Contributors:**
[cwchristerw](<https://github.com/cwchristerw>)
## 0.5.8 (30.9.2024)
Patch Release
**Package**
- Dependencies Update
**Documentation**
- Update radio stations list address and repo in README.md
- Fix versions 0.5.5-0.5.7 release years in CHANGELOG.md
**Contributors:**
[cwchristerw](<https://github.com/cwchristerw>)
## 0.5.7 (19.6.2024)
Patch Release
@ -10,7 +49,7 @@ Patch Release
**Contributors:**
[cwchristerw](<https://github.com/cwchristerw>)
## 0.5.6 (8.6.2023)
## 0.5.6 (8.6.2024)
Patch Release
@ -23,7 +62,7 @@ Patch Release
**Contributors:**
[cwchristerw](<https://github.com/cwchristerw>)
## 0.5.5 (30.4.2023)
## 0.5.5 (30.4.2024)
Patch Release

View File

@ -1,4 +1,4 @@
FROM docker.io/library/node:20-alpine
FROM docker.io/library/node:22-alpine
#Dependencies
RUN apk add --virtual .build-deps python3 make g++ gcc git

View File

@ -1,6 +1,6 @@
MIT License
Copyright (c) 2020-2024 EximiaBots by Warén Group
Copyright (c) 2020-2025 EximiaBots by Warén Group
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View File

@ -1,8 +1,12 @@
# RadioX by EximiaBots
Internet Radio to your Discord guild
## [Radio Stations List](https://git.cwinfo.net/cwchristerw/radio)
This bot is using Gitea repo to get radio stations from [playlist.json](https://git.cwinfo.net/cwchristerw/radio/raw/branch/master/playlist.json) file. List is currently maintained by Christer Warén. You can use alternative list with same format when using RADIOX_STATIONSLISTURL environment variable.
## [Radio Stations List](https://eximiabots.waren.io/radiox/stations.json)
This bot is getting radio stations from our servers.
https://eximiabots.waren.io/radiox/stations.json
List is generated with cwchristerw's [radio](https://git.waren.io/cwchristerw/radio) repo. This list is currently maintained by Christer Warén. You can use alternative list with same format when using RADIOX_STATIONSLISTURL environment variable.
## Docker

537
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{
"name": "eximiabots-radiox",
"version": "0.5.7",
"version": "0.5.10",
"description": "Internet Radio to your Discord guild",
"main": "index.js",
"scripts": {
@ -18,18 +18,18 @@
"url": "https://github.com/warengroup/eximiabots-radiox/issues"
},
"dependencies": {
"@discordjs/voice": "^0.17.0",
"discord.js": "^14.15.3",
"dotenv": "^16.4.5",
"libsodium-wrappers": "^0.7.13",
"@discordjs/voice": "^0.18.0",
"discord.js": "^14.19.3",
"dotenv": "^16.5.0",
"libsodium-wrappers": "^0.7.15",
"path": "^0.12.7"
},
"devDependencies": {
"rimraf": "^5.0.7",
"typescript": "^5.4.5"
"rimraf": "^6.0.1",
"typescript": "^5.8.3"
},
"engines": {
"node": ">=20.0.0",
"node": ">=22.0.0",
"npm": ">=10.0.0"
}
}

View File

@ -76,7 +76,7 @@ export default class Datastore {
return this.map.get(id);
}
updateEntry(guild: Guild | { id: string, name: string }, newData: datastore) {
updateEntry(guild: Guild | { id: string, name?: string }, newData: datastore) {
newData.guild.name = guild.name;
let date = new Date();

View File

@ -1,20 +1,20 @@
import { Collection, GuildMember, Message, OAuth2Guild, TextBasedChannel, VoiceBasedChannel, VoiceChannel } from "discord.js";
import { getVoiceConnection, joinVoiceChannel, VoiceConnection } from "@discordjs/voice";
import { Collection, GuildMember, Message, Guild, OAuth2Guild, TextBasedChannel, VoiceBasedChannel, VoiceChannel } from "discord.js";
import { DiscordGatewayAdapterCreator, getVoiceConnection, joinVoiceChannel, VoiceConnection } from "@discordjs/voice";
import RadioClient from "../../Client";
import { station } from "./Stations";
import { datastore } from "./Datastore";
export interface radio {
textChannel: TextBasedChannel | undefined | null,
voiceChannel: VoiceBasedChannel | undefined,
connection: VoiceConnection | null,
textChannel: TextBasedChannel | null,
voiceChannel: VoiceBasedChannel | null,
connection: VoiceConnection | undefined,
message: Message | null,
station: station,
datastore?: datastore,
currentTime?: number,
startTime: number,
playTime?: number,
guild?: any
guild?: Guild | { id: string, name?: string }
}
export interface state {
@ -78,10 +78,11 @@ export default class Radio extends Map<string, radio> {
const construct: radio = {
textChannel: client.channels.cache.get(state.channels.text) as TextBasedChannel,
voiceChannel: client.channels.cache.get(state.channels.voice) as VoiceBasedChannel,
connection: null,
connection: undefined,
message: null,
station: station,
startTime: date.getTime()
startTime: date.getTime(),
guild: guild
};
this.set(guild.id, construct);
@ -91,7 +92,7 @@ export default class Radio extends Map<string, radio> {
joinVoiceChannel({
channelId: voiceChannel.id,
guildId: voiceChannel.guild.id,
adapterCreator: voiceChannel.guild.voiceAdapterCreator
adapterCreator: voiceChannel.guild.voiceAdapterCreator as DiscordGatewayAdapterCreator
});
construct.connection = connection;

View File

@ -1,4 +1,4 @@
import { Guild } from "discord.js";
import { Guild, OAuth2Guild } from "discord.js";
import RadioClient from "../../Client";
import { radio } from "./Radio";
@ -18,7 +18,7 @@ export default class Statistics {
this.map = new Map();
}
update(client: RadioClient, guild: Guild | null, radio: radio) {
update(client: RadioClient, guild: Guild | { id: string, name?: string } | undefined, radio: radio) {
if(!guild) return;
client.datastore?.checkEntry(guild.id);

View File

@ -10,7 +10,7 @@ export default {
if(!client.user) return interaction.reply({
content: client.messages.emojis["error"] + client.messages.maintenance,
ephemeral: true
flags: 'Ephemeral'
});
const embed = new EmbedBuilder()
@ -28,7 +28,7 @@ export default {
interaction.reply({
embeds: [embed],
ephemeral: true
flags: 'Ephemeral'
});
}
};

View File

@ -14,7 +14,7 @@ export default {
if(client.config.maintenanceMode){
return interaction.reply({
content: client.messages.emojis["error"] + client.messages.maintenance,
ephemeral: true
flags: 'Ephemeral'
});
}
@ -37,7 +37,7 @@ export default {
content: client.messages.emojis["error"] + client.messages.replace(client.messages.errorToGetPlaylist, {
"%client.config.supportGuild%": client.config.supportGuild
}),
ephemeral: true
flags: 'Ephemeral'
});
}
@ -65,7 +65,7 @@ export default {
interaction.reply({
embeds: [embed],
ephemeral: true
flags: 'Ephemeral'
});
}
}

View File

@ -11,7 +11,7 @@ export default {
if(!client.funcs.isDev(client.config.devIDs, interaction.user.id)) return interaction.reply({
content: client.messages.emojis["error"] + client.messages.notAllowed,
ephemeral: true
flags: 'Ephemeral'
});
let action : number | string | null = null;
@ -107,7 +107,7 @@ export default {
return interaction.reply({
content: "**" + client.messages.maintenanceTitle + "**",
components: [menu],
ephemeral: true
flags: 'Ephemeral'
});
}
@ -124,7 +124,7 @@ export default {
interaction.reply({
embeds: [embed],
ephemeral: true
flags: 'Ephemeral'
});
let guilds = await client.guilds.fetch();

View File

@ -16,7 +16,7 @@ export default {
if(client.config.maintenanceMode){
return interaction.reply({
content: client.messages.emojis["error"] + client.messages.maintenance,
ephemeral: true
flags: 'Ephemeral'
});
}
@ -25,7 +25,7 @@ export default {
content: client.messages.emojis["error"] + client.messages.replace(client.messages.errorToGetPlaylist, {
"%client.config.supportGuild%": client.config.supportGuild
}),
ephemeral: true
flags: 'Ephemeral'
});
}
@ -36,7 +36,7 @@ export default {
if(!station) return interaction.reply({
content: client.messages.emojis["error"] + client.messages.noSearchResults,
ephemeral: true
flags: 'Ephemeral'
});
client.statistics?.update(client, interaction.guild, radio);

View File

@ -1,5 +1,5 @@
import { ApplicationCommandOptionType, ChatInputCommandInteraction, GuildMember, PermissionFlagsBits, StringSelectMenuInteraction } from "discord.js";
import { getVoiceConnection, joinVoiceChannel } from "@discordjs/voice";
import { DiscordGatewayAdapterCreator, getVoiceConnection, joinVoiceChannel } from "@discordjs/voice";
import RadioClient from "../../Client";
import { radio } from "../classes/Radio"
@ -18,7 +18,7 @@ export default {
if(client.config.maintenanceMode){
return interaction.reply({
content: client.messages.emojis["error"] + client.messages.maintenance,
ephemeral: true
flags: 'Ephemeral'
});
}
@ -27,7 +27,7 @@ export default {
content: client.messages.emojis["error"] + client.messages.replace(client.messages.errorToGetPlaylist, {
"%client.config.supportGuild%": client.config.supportGuild
}),
ephemeral: true
flags: 'Ephemeral'
});
}
@ -52,32 +52,32 @@ export default {
if (!voiceChannel) return interaction.reply({
content: client.messages.emojis["error"] + client.messages.noVoiceChannel,
ephemeral: true
flags: 'Ephemeral'
});
if (radio) {
if (voiceChannel !== radio.voiceChannel) return interaction.reply({
content: client.messages.emojis["error"] + client.messages.wrongVoiceChannel,
ephemeral: true
flags: 'Ephemeral'
});
}
if (!query) return interaction.reply({
content: client.messages.noQuery,
ephemeral: true
flags: 'Ephemeral'
});
const permissions = voiceChannel.permissionsFor(interaction.client.user);
if (!permissions?.has(PermissionFlagsBits.Connect)) {
return interaction.reply({
content: client.messages.emojis["error"] + client.messages.noPermsConnect,
ephemeral: true
flags: 'Ephemeral'
});
}
if (!permissions?.has(PermissionFlagsBits.Speak)) {
return interaction.reply({
content: client.messages.emojis["error"] + client.messages.noPermsSpeak,
ephemeral: true
flags: 'Ephemeral'
});
}
let station;
@ -87,7 +87,7 @@ export default {
if(number > client.stations.length - 1) {
return interaction.reply({
content: client.messages.emojis["error"] + client.messages.wrongStationNumber,
ephemeral: true
flags: 'Ephemeral'
});
} else {
station = client.stations[number];
@ -96,7 +96,7 @@ export default {
if(query.length < 3) return interaction.reply({
content: client.messages.emojis["error"] + client.messages.tooShortSearch,
ephemeral: true
flags: 'Ephemeral'
});
let type = "text";
@ -108,7 +108,7 @@ export default {
const sstation = client.stations.search(query, type);
if (!sstation) return interaction.reply({
content: client.messages.emojis["error"] + client.messages.noSearchResults,
ephemeral: true
flags: 'Ephemeral'
});
station = sstation;
}
@ -129,10 +129,11 @@ export default {
const construct: radio = {
textChannel: interaction.channel,
voiceChannel: voiceChannel,
connection: null,
connection: undefined,
message: null,
station: station,
startTime: date.getTime()
startTime: date.getTime(),
guild: interaction.guild
};
client.radio?.set(interaction.guild?.id, construct);
@ -142,7 +143,7 @@ export default {
joinVoiceChannel({
channelId: voiceChannel.id,
guildId: voiceChannel.guild.id,
adapterCreator: voiceChannel.guild.voiceAdapterCreator
adapterCreator: voiceChannel.guild?.voiceAdapterCreator as DiscordGatewayAdapterCreator
});
construct.connection = connection;
let date = new Date();
@ -154,7 +155,7 @@ export default {
client.radio?.delete(interaction.guild?.id);
return interaction.reply({
content: client.messages.emojis["error"] + `An error occured: ${error}`,
ephemeral: true
flags: 'Ephemeral'
});
}
}

View File

@ -16,7 +16,7 @@ export default {
if(client.config.maintenanceMode){
return interaction.reply({
content: client.messages.emojis["error"] + client.messages.maintenance,
ephemeral: true
flags: 'Ephemeral'
});
}
@ -25,7 +25,7 @@ export default {
content: client.messages.emojis["error"] + client.messages.replace(client.messages.errorToGetPlaylist, {
"%client.config.supportGuild%": client.config.supportGuild
}),
ephemeral: true
flags: 'Ephemeral'
});
}
@ -36,7 +36,7 @@ export default {
if(!station) return interaction.reply({
content: client.messages.emojis["error"] + client.messages.noSearchResults,
ephemeral: true
flags: 'Ephemeral'
});
client.statistics?.update(client, interaction.guild, radio);

View File

@ -10,7 +10,7 @@ export default {
if(!interaction.guild) return interaction.reply({
content: client.messages.emojis["error"] + client.messages.maintenance,
ephemeral: true
flags: 'Ephemeral'
});
let currentGuild = client.datastore?.getEntry(interaction.guild.id);
@ -22,7 +22,7 @@ export default {
content: client.messages.emojis["error"] + client.messages.replace(client.messages.errorToGetPlaylist, {
"%client.config.supportGuild%": client.config.supportGuild
}),
ephemeral: true
flags: 'Ephemeral'
});
}
@ -45,7 +45,7 @@ export default {
interaction.reply({
embeds: [embed],
ephemeral: true
flags: 'Ephemeral'
});
}
};

View File

@ -9,7 +9,7 @@ export default {
if(!client.user) return interaction.reply({
content: client.messages.emojis["error"] + client.messages.maintenance,
ephemeral: true
flags: 'Ephemeral'
});
let uptime = client.funcs.msToTime(client.uptime || 0);
@ -35,7 +35,7 @@ export default {
interaction.reply({
embeds: [embed],
ephemeral: true
flags: 'Ephemeral'
});
}

View File

@ -1,4 +1,4 @@
import { ButtonInteraction, ChatInputCommandInteraction, EmbedBuilder, StringSelectMenuInteraction } from "discord.js";
import { ButtonInteraction, ChannelType, ChatInputCommandInteraction, EmbedBuilder, StringSelectMenuInteraction } from "discord.js";
import RadioClient from "../../Client";
import { command } from "../commands";
@ -11,6 +11,7 @@ export default {
if(!interaction.guild) return;
const radio = client.radio?.get(interaction.guild?.id);
if(!radio) return;
if(radio.textChannel?.type == ChannelType.DM || radio.textChannel?.type == ChannelType.GroupDM) return;
client.statistics?.update(client, interaction.guild, radio);
radio.connection?.destroy();
client.funcs.logger('Radio', interaction.guild?.id + " / " + 'Stop');
@ -47,7 +48,7 @@ export default {
interaction.reply({
content: client.messages.emojis["stop"] + client.messages.stop,
ephemeral: true
flags: 'Ephemeral'
});
}
}

View File

@ -3,16 +3,15 @@ import RadioClient from "../../Client";
export default function interactionCreate(client: RadioClient, interaction: Interaction) {
if(!(interaction.isButton()) && !(interaction.isChatInputCommand()) && !(interaction.isStringSelectMenu())) return;
if(interaction.channel?.type == ChannelType.DM || interaction.channel?.type == ChannelType.GroupDM) return;
if(interaction.channel?.type != ChannelType.DM){
const permissions = interaction.channel?.permissionsFor(interaction.client.user);
if (!permissions?.has(PermissionFlagsBits.ViewChannel)) return;
const permissions = interaction.channel?.permissionsFor(interaction.client.user);
if (!permissions?.has(PermissionFlagsBits.ViewChannel)) return;
if (!permissions?.has(PermissionFlagsBits.EmbedLinks)) return interaction.reply({
content: client.messages.emojis["error"] + client.messages.noPermsEmbed,
ephemeral: true
});
}
if (!permissions?.has(PermissionFlagsBits.EmbedLinks)) return interaction.reply({
content: client.messages.emojis["error"] + client.messages.noPermsEmbed,
flags: 'Ephemeral'
});
if(interaction.isChatInputCommand()){
const commandName = interaction.commandName;
@ -24,7 +23,7 @@ export default function interactionCreate(client: RadioClient, interaction: Inte
} catch (error) {
interaction.reply({
content: client.messages.emojis["error"] + client.messages.runningCommandFailed,
ephemeral: true
flags: 'Ephemeral'
});
console.error(error);
}
@ -38,7 +37,7 @@ export default function interactionCreate(client: RadioClient, interaction: Inte
} catch (error) {
interaction.reply({
content: client.messages.emojis["error"] + client.messages.runningCommandFailed,
ephemeral: true
flags: 'Ephemeral'
});
console.error(error);
}

View File

@ -1,9 +1,6 @@
import { GuildMember, PermissionFlagsBits, VoiceState } from "discord.js";
import RadioClient from "../../Client";
const {
getVoiceConnection,
joinVoiceChannel
} = require("@discordjs/voice");
import { DiscordGatewayAdapterCreator, getVoiceConnection, joinVoiceChannel } from "@discordjs/voice";
export default async function voiceStateUpdate(client: RadioClient, oldState: VoiceState, newState: VoiceState) {
if (oldState.channel === null) return;
@ -27,9 +24,9 @@ export default async function voiceStateUpdate(client: RadioClient, oldState: Vo
setTimeout(
async () => (
radio.connection = joinVoiceChannel({
channelId: oldState.channel?.id,
guildId: oldState.channel?.guild.id,
adapterCreator: oldState.channel?.guild.voiceAdapterCreator
channelId: oldState.channel?.id as string,
guildId: oldState.channel?.guild.id as string,
adapterCreator: oldState.channel?.guild.voiceAdapterCreator as DiscordGatewayAdapterCreator
})
),
1000

View File

@ -11,14 +11,14 @@ export default function check(client: RadioClient, interaction: ButtonInteractio
content: client.messages.emojis["error"] + client.messages.replace(client.messages.errorToGetPlaylist, {
"%client.config.supportGuild%": client.config.supportGuild
}),
ephemeral: true
flags: 'Ephemeral'
});
return false;
}
if (!radio) {
interaction.reply({
content: client.messages.emojis["error"] + client.messages.notPlaying,
ephemeral: true
flags: 'Ephemeral'
});
return false;
}
@ -26,7 +26,7 @@ export default function check(client: RadioClient, interaction: ButtonInteractio
if (interaction.member instanceof GuildMember && interaction.member?.voice.channel !== radio.voiceChannel) {
interaction.reply({
content: client.messages.emojis["error"] + client.messages.wrongVoiceChannel,
ephemeral: true
flags: 'Ephemeral'
});
return false;
}

View File

@ -37,6 +37,6 @@ export default function listStations(client: RadioClient, interaction: ButtonInt
return interaction.reply({
content: '**Select station:**',
components: [menu],
ephemeral: true
flags: 'Ephemeral'
});
}

View File

@ -1,4 +1,4 @@
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, ChatInputCommandInteraction, EmbedBuilder, Guild, OAuth2Guild, StringSelectMenuInteraction } from "discord.js";
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, ChannelType, ChatInputCommandInteraction, EmbedBuilder, Guild, OAuth2Guild, StringSelectMenuInteraction } from "discord.js";
import RadioClient from "../../Client";
import { station } from "../classes/Stations";
@ -7,6 +7,7 @@ export default async function play(client: RadioClient, interaction: ChatInputCo
const radio = client.radio?.get(guild.id);
if(!radio) return;
if(radio.textChannel?.type == ChannelType.DM || radio.textChannel?.type == ChannelType.GroupDM) return;
const audioPlayer = client.streamer?.listen(station);
if(!audioPlayer) return;
radio.connection?.subscribe(audioPlayer);
@ -123,7 +124,7 @@ export default async function play(client: RadioClient, interaction: ChatInputCo
let timer : NodeJS.Timeout = setInterval(async function(){
const radio = client.radio?.get(guild.id);
if(!radio || !oldRadio || radio.station.name != oldRadio.station.name) {
if(!radio || !oldRadio || radio.station.name != oldRadio.station.name || radio.textChannel?.type == ChannelType.DM || radio.textChannel?.type == ChannelType.GroupDM) {
return clearInterval(timer);
}
@ -211,7 +212,7 @@ export default async function play(client: RadioClient, interaction: ChatInputCo
content: client.messages.emojis["play"] + client.messages.replace(client.messages.play, {
"%radio.station.name%": radio.station.name
}),
ephemeral: true
flags: 'Ephemeral'
});
}

View File

@ -2,8 +2,8 @@ import { Guild } from "discord.js";
import RadioClient from "../../Client";
import { radio } from "../classes/Radio";
export default function saveState(client: RadioClient, guild: Guild, radio: radio){
if(!client.datastore) return;
export default function saveState(client: RadioClient, guild: Guild | { id: string, name?: string } | undefined, radio: radio){
if(!client.datastore || !guild) return;
client.datastore.checkEntry(guild.id);
let date = new Date();