music: add fetching message to playlist processing
This commit is contained in:
parent
cdf94b2fd2
commit
4409f21d94
1 changed files with 11 additions and 1 deletions
|
@ -415,8 +415,18 @@ command.callback = async function (msg, line) {
|
||||||
|
|
||||||
if (type != null) {
|
if (type != null) {
|
||||||
if (playlist) {
|
if (playlist) {
|
||||||
const playlist = await processPlaylist(argStr, type, shuffle);
|
|
||||||
const statusMessage = msg.channel.createMessage({
|
const statusMessage = msg.channel.createMessage({
|
||||||
|
embeds: [
|
||||||
|
{
|
||||||
|
title:
|
||||||
|
"<a:loading:493087964918972426> Processing playlist...",
|
||||||
|
description: `Fetching tracks...`,
|
||||||
|
color: 0xcc0088,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
});
|
||||||
|
const playlist = await processPlaylist(argStr, type, shuffle);
|
||||||
|
await statusMessage.edit({
|
||||||
embeds: [
|
embeds: [
|
||||||
{
|
{
|
||||||
title:
|
title:
|
||||||
|
|
Loading…
Reference in a new issue