From 9d5ea75549c20a63c9a0ef3ce7e529cbe3c79b8a Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sun, 24 Jul 2022 11:50:39 -0400 Subject: Removed a package and references to @discord.js/builder --- commands/about.js | 3 +-- commands/join.js | 2 +- commands/leave.js | 2 +- commands/list.js | 2 +- commands/next.js | 2 +- commands/pause.js | 2 +- commands/ping.js | 2 +- commands/play.js | 2 +- commands/previous.js | 2 +- commands/reshuffle.js | 2 +- commands/shutdown.js | 2 +- commands/status.js | 5 ++--- 12 files changed, 13 insertions(+), 15 deletions(-) (limited to 'commands') 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] }); } }; -- cgit v1.2.3