diff options
| -rw-r--r-- | commands/about.js | 3 | ||||
| -rw-r--r-- | commands/join.js | 2 | ||||
| -rw-r--r-- | commands/leave.js | 2 | ||||
| -rw-r--r-- | commands/list.js | 2 | ||||
| -rw-r--r-- | commands/next.js | 2 | ||||
| -rw-r--r-- | commands/pause.js | 2 | ||||
| -rw-r--r-- | commands/ping.js | 2 | ||||
| -rw-r--r-- | commands/play.js | 2 | ||||
| -rw-r--r-- | commands/previous.js | 2 | ||||
| -rw-r--r-- | commands/reshuffle.js | 2 | ||||
| -rw-r--r-- | commands/shutdown.js | 2 | ||||
| -rw-r--r-- | commands/status.js | 5 | ||||
| -rw-r--r-- | package.json | 1 | ||||
| -rw-r--r-- | yarn.lock | 20 |
14 files changed, 13 insertions, 36 deletions
diff --git a/commands/about.js b/commands/about.js index c7c6ace..dbc96c2 100644 --- a/commands/about.js +++ b/commands/about.js @@ -19,8 +19,7 @@ * ***************************************************************************/ -import { SlashCommandBuilder } from '@discordjs/builders'; -import { EmbedBuilder, version, ActionRowBuilder, ButtonBuilder, ButtonStyle } from 'discord.js'; +import { EmbedBuilder, version, ActionRowBuilder, ButtonBuilder, ButtonStyle, SlashCommandBuilder } from 'discord.js'; // import npmPackage from '../package.json' assert { type:'json' } import { readFileSync } from 'node:fs'; const npmPackage = JSON.parse(readFileSync('./package.json')); diff --git a/commands/join.js b/commands/join.js index 02c50a4..7294724 100644 --- a/commands/join.js +++ b/commands/join.js @@ -19,7 +19,7 @@ * ***************************************************************************/ -import { SlashCommandBuilder } from '@discordjs/builders'; +import { SlashCommandBuilder } from 'discord.js'; import { voiceInit } from '../AudioBackend.js'; import { PermissionFlagsBits } from 'discord-api-types/v10'; diff --git a/commands/leave.js b/commands/leave.js index a066e38..10634af 100644 --- a/commands/leave.js +++ b/commands/leave.js @@ -19,7 +19,7 @@ * ***************************************************************************/ -import { SlashCommandBuilder } from '@discordjs/builders'; +import { SlashCommandBuilder } from 'discord.js'; import { destroyAudio } from '../AudioBackend.js'; import { PermissionFlagsBits } from 'discord-api-types/v10'; diff --git a/commands/list.js b/commands/list.js index 7101e16..05d40c6 100644 --- a/commands/list.js +++ b/commands/list.js @@ -19,7 +19,7 @@ * ***************************************************************************/ -import { SlashCommandBuilder } from '@discordjs/builders'; +import { SlashCommandBuilder } from 'discord.js'; import { readdirSync, readdir } from 'fs'; const musicFolder = './music'; diff --git a/commands/next.js b/commands/next.js index 9a3a5bd..01c5df9 100644 --- a/commands/next.js +++ b/commands/next.js @@ -19,7 +19,7 @@ * ***************************************************************************/ -import { SlashCommandBuilder } from '@discordjs/builders'; +import { SlashCommandBuilder } from 'discord.js'; import { player, nextAudio } from '../AudioBackend.js'; import { PermissionFlagsBits } from 'discord-api-types/v10'; diff --git a/commands/pause.js b/commands/pause.js index 8d42459..dffcfb5 100644 --- a/commands/pause.js +++ b/commands/pause.js @@ -19,7 +19,7 @@ * ***************************************************************************/ -import { SlashCommandBuilder } from '@discordjs/builders'; +import { SlashCommandBuilder } from 'discord.js'; import { audioState, isAudioStatePaused, player } from '../AudioBackend.js'; import { PermissionFlagsBits } from 'discord-api-types/v10'; diff --git a/commands/ping.js b/commands/ping.js index 0c6b887..72ef024 100644 --- a/commands/ping.js +++ b/commands/ping.js @@ -19,7 +19,7 @@ * ***************************************************************************/ -import { SlashCommandBuilder } from '@discordjs/builders'; +import { SlashCommandBuilder } from 'discord.js'; export default { data: new SlashCommandBuilder() diff --git a/commands/play.js b/commands/play.js index 4145f54..f9701f7 100644 --- a/commands/play.js +++ b/commands/play.js @@ -19,7 +19,7 @@ * ***************************************************************************/ -import { SlashCommandBuilder } from '@discordjs/builders'; +import { SlashCommandBuilder } from 'discord.js'; import { isAudioStatePaused, inputAudio, audio, audioState, player, files } from '../AudioBackend.js'; import { PermissionFlagsBits } from 'discord-api-types/v10'; diff --git a/commands/previous.js b/commands/previous.js index 7d96ec7..2bb8960 100644 --- a/commands/previous.js +++ b/commands/previous.js @@ -19,7 +19,7 @@ * ***************************************************************************/ -import { SlashCommandBuilder } from '@discordjs/builders'; +import { SlashCommandBuilder } from 'discord.js'; import { previousAudio } from '../AudioBackend.js'; import { PermissionFlagsBits } from 'discord-api-types/v10'; diff --git a/commands/reshuffle.js b/commands/reshuffle.js index ee42289..8de2d17 100644 --- a/commands/reshuffle.js +++ b/commands/reshuffle.js @@ -19,7 +19,7 @@ * ***************************************************************************/ -import { SlashCommandBuilder } from '@discordjs/builders'; +import { SlashCommandBuilder } from 'discord.js'; import { player, shufflePlaylist } from '../AudioBackend.js'; import { PermissionFlagsBits } from 'discord-api-types/v10'; import { readFileSync } from 'node:fs'; diff --git a/commands/shutdown.js b/commands/shutdown.js index 196b289..0cf75b8 100644 --- a/commands/shutdown.js +++ b/commands/shutdown.js @@ -19,7 +19,7 @@ * ***************************************************************************/ -import { SlashCommandBuilder } from '@discordjs/builders'; +import { SlashCommandBuilder } from 'discord.js'; import { stopBot } from '../AudioBackend.js'; import { PermissionFlagsBits } from 'discord-api-types/v10'; diff --git a/commands/status.js b/commands/status.js index 766b9be..654b496 100644 --- a/commands/status.js +++ b/commands/status.js @@ -19,8 +19,7 @@ * ***************************************************************************/ -import { SlashCommandBuilder } from '@discordjs/builders'; -import { EmbedBuilder } from 'discord.js'; +import { EmbedBuilder, SlashCommandBuilder } from 'discord.js'; import { audio, currentTrack, files, playerState } from '../AudioBackend.js'; export default { @@ -45,6 +44,6 @@ export default { .addFields({ name: 'Currently Playing', value: audio }) .addFields({ name: 'Up Next', value: audioName }) .setColor('#0066ff'); - interaction.reply({ embeds: [controlEmbed], ephemeral: true }); + interaction.reply({ embeds: [controlEmbed] }); } }; diff --git a/package.json b/package.json index ee0d937..256473d 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,6 @@ "discord-api-types": "^0.36.3", "discord.js": "^14.0.3", "ffmpeg-static": "^5.0.0", - "fluent-ffmpeg": "^2.1.2", "music-metadata": "^7.12.4", "sodium": "^3.0.2" }, @@ -240,11 +240,6 @@ array.prototype.flat@^1.2.5: es-abstract "^1.19.2" es-shim-unscopables "^1.0.0" -async@>=0.2.9: - version "3.2.4" - resolved "https://registry.yarnpkg.com/async/-/async-3.2.4.tgz#2d22e00f8cddeb5fde5dd33522b56d1cf569a81c" - integrity sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ== - balanced-match@^1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" @@ -774,14 +769,6 @@ flatted@^3.1.0: resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.6.tgz#022e9218c637f9f3fc9c35ab9c9193f05add60b2" integrity sha512-0sQoMh9s0BYsm+12Huy/rkKxVu4R1+r96YX5cG44rHV0pQ6iC3Q+mkoMFaGWObMFYQxCVT+ssG1ksneA2MI9KQ== -fluent-ffmpeg@^2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/fluent-ffmpeg/-/fluent-ffmpeg-2.1.2.tgz#c952de2240f812ebda0aa8006d7776ee2acf7d74" - integrity sha512-IZTB4kq5GK0DPp7sGQ0q/BWurGHffRtQQwVkiqDgeO6wYJLLV5ZhgNOQ65loZxxuPMKZKZcICCUnaGtlxBiR0Q== - dependencies: - async ">=0.2.9" - which "^1.1.1" - fs-minipass@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/fs-minipass/-/fs-minipass-2.1.0.tgz#7f5036fdbf12c63c169190cbe4199c852271f9fb" @@ -1822,13 +1809,6 @@ which-boxed-primitive@^1.0.2: is-string "^1.0.5" is-symbol "^1.0.3" -which@^1.1.1: - version "1.3.1" - resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" - integrity sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ== - dependencies: - isexe "^2.0.0" - which@^2.0.1: version "2.0.2" resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1" |
