From 8ce71120f31fd8f590bd7b3f2247ea65450da01d Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sun, 17 Jul 2022 18:15:16 -0400 Subject: Updated to v14 --- AudioBackend.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'AudioBackend.js') diff --git a/AudioBackend.js b/AudioBackend.js index 0f68aa2..ec25b55 100644 --- a/AudioBackend.js +++ b/AudioBackend.js @@ -26,7 +26,7 @@ import { joinVoiceChannel, VoiceConnectionStatus } from '@discordjs/voice'; -import { MessageEmbed } from 'discord.js'; +import { EmbedBuilder } from 'discord.js'; import { readdirSync, readFileSync, writeFile } from 'node:fs'; // import config from './config.json' assert {type: 'json'} const { voiceChannel, statusChannel, shuffle, txtFile } = JSON.parse(readFileSync('./config.json')); @@ -147,8 +147,8 @@ export async function playAudio(bot) { }); } - const statusEmbed = new MessageEmbed() - .addField('Now Playing', `${audio}`) + const statusEmbed = new EmbedBuilder() + .addFields({ name: 'Now Playing', value: audio}) .setColor('#0066ff'); const channel = bot.channels.cache.get(statusChannel); @@ -186,7 +186,7 @@ export function audioState() { } export async function stopBot(bot, interaction) { - const statusEmbed = new MessageEmbed() + const statusEmbed = new EmbedBuilder() .setAuthor({ name: bot.user.username, iconURL: bot.user.avatarURL() }) .setDescription(`That's all folks! Powering down ${bot.user.username}...`) .setColor('#0066ff'); -- cgit v1.2.3