diff --git a/locales/EnglishUS.json b/locales/EnglishUS.json index 75c53c9ea..41adc0dc3 100644 --- a/locales/EnglishUS.json +++ b/locales/EnglishUS.json @@ -239,6 +239,7 @@ } }, "grab": { + "loading": "Loading...", "description": "Grabs the current playing song on your DM", "content": "**Duration:** {length}\n**Requested by:** <@{requester}>\n**Link:** [Click here]({uri})", "check_dm": "Please check your DM.", diff --git a/src/commands/music/Grab.ts b/src/commands/music/Grab.ts index ae4205fab..ee91ab13a 100644 --- a/src/commands/music/Grab.ts +++ b/src/commands/music/Grab.ts @@ -33,6 +33,8 @@ export default class Grab extends Command { public async run(client: Lavamusic, ctx: Context): Promise { const player = client.queue.get(ctx.guild!.id); + await ctx.sendDeferMessage(ctx.locale("cmd.grab.loading")); + if (!player?.current) { return await ctx.sendMessage({ embeds: [this.client.embed().setColor(this.client.color.red).setDescription(ctx.locale("player.errors.no_song"))], @@ -62,11 +64,11 @@ export default class Grab extends Command { ], }); - return await ctx.sendMessage({ + return await ctx.editMessage({ embeds: [this.client.embed().setDescription(ctx.locale("cmd.grab.check_dm")).setColor(this.client.color.green)], }); } catch (_e) { - return await ctx.sendMessage({ + return await ctx.editMessage({ embeds: [this.client.embed().setDescription(ctx.locale("cmd.grab.dm_failed")).setColor(this.client.color.red)], }); }