diff --git a/src/commands/playlist/Remove.ts b/src/commands/playlist/Remove.ts index 17fc35ae6..394356996 100644 --- a/src/commands/playlist/Remove.ts +++ b/src/commands/playlist/Remove.ts @@ -4,11 +4,11 @@ import { Command, type Context, type Lavamusic } from "../../structures/index.js export default class RemoveSong extends Command { constructor(client: Lavamusic) { super(client, { - name: "remove", + name: "removesong", description: { content: "Removes a song from the playlist", - examples: ["remove "], - usage: "remove ", + examples: ["removesong "], + usage: "removesong ", }, category: "playlist", aliases: ["d"], diff --git a/src/commands/playlist/Steal.ts b/src/commands/playlist/Steal.ts index 3625ad1a3..beaf60944 100644 --- a/src/commands/playlist/Steal.ts +++ b/src/commands/playlist/Steal.ts @@ -48,10 +48,9 @@ export default class StealPlaylist extends Command { let targetUser = ctx.args[0]; if (targetUser?.startsWith("<@") && targetUser.endsWith(">")) { - targetUser = targetUser.slice(2, -1); - if (targetUser.startsWith('!')) { + if (targetUser.startsWith("!")) { targetUser = targetUser.slice(1); } @@ -78,7 +77,10 @@ export default class StealPlaylist extends Command { const targetPlaylist = await client.db.getPlaylist(targetUserId, playlistName); if (!targetPlaylist) { - const playlistNotFoundError = this.client.embed().setDescription("[That playlist doesn't exist for the mentioned user]").setColor(this.client.color.red); + const playlistNotFoundError = this.client + .embed() + .setDescription("[That playlist doesn't exist for the mentioned user]") + .setColor(this.client.color.red); return await ctx.sendMessage({ embeds: [playlistNotFoundError] }); } @@ -92,7 +94,10 @@ export default class StealPlaylist extends Command { await ctx.sendMessage({ embeds: [successMessage] }); } catch (error) { console.error(error); - const errorMessage = this.client.embed().setDescription("[An error occurred while stealing the playlist]").setColor(this.client.color.red); + const errorMessage = this.client + .embed() + .setDescription("[An error occurred while stealing the playlist]") + .setColor(this.client.color.red); await ctx.sendMessage({ embeds: [errorMessage] }); } }