diff --git a/src/modules/music.js b/src/modules/music.js index 351b1ad..e285738 100644 --- a/src/modules/music.js +++ b/src/modules/music.js @@ -423,11 +423,12 @@ command.usage = "help"; command.callback = async function ( msg, line, - [subcommand, ...args], + args, {shuffle = false, limit = -1, offset = 0, next = false} ) { if (!msg.guildID) return "This command can only be used in guilds."; + const subcommand = args.shift(); let argStr = args.join(" "); switch (subcommand) { @@ -539,7 +540,7 @@ command.callback = async function ( }); } } else { - if (argStr.match(/https?:\/\//)) { + if (argStr.match(/^https?:\/\//)) { const contentType = await fetch(argStr).then((res) => res.headers.get("Content-Type") );