diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2022-07-17 18:15:16 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2022-07-17 18:15:16 -0400 |
| commit | 8ce71120f31fd8f590bd7b3f2247ea65450da01d (patch) | |
| tree | a88becb45d43534de7fa1a07e294d38006b1fd37 /AudioBackend.js | |
| parent | 6664618ed1225e17f2e98ee8a44179181e3dcf9b (diff) | |
| download | DLAP-8ce71120f31fd8f590bd7b3f2247ea65450da01d.tar.gz DLAP-8ce71120f31fd8f590bd7b3f2247ea65450da01d.tar.bz2 DLAP-8ce71120f31fd8f590bd7b3f2247ea65450da01d.zip | |
Updated to v14
Diffstat (limited to 'AudioBackend.js')
| -rw-r--r-- | AudioBackend.js | 8 |
1 files changed, 4 insertions, 4 deletions
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'); |
