"`removefromplaylist <playlist-name> <index|keyword> <[start:end]|keyword name>`" ) # seeallplaylist <user id or @user> @commands.command() async def seeallplaylist(self, ctx, *, userID): if (match := re.match(r"^<?@?!?([0-9]+)>?$", userID)): userID = match.group(1) else: await ctx.send( "O _ID_ do usuário informado não é válido. Verifique novamente." ) return userPlaylists = playlistQuery.GetUserPlaylists(ctx.guild.id, userID) msg = f"> Playlists do usuário <@{userID}>:\n" for playlist in userPlaylists: msg = msg + f"\t**#{userPlaylists.index(playlist)+1} -** {playlist[0]}\t_(Songs: {playlist[1]})_\n" await ctx.send(msg) # showplaylist <user id or @user> <playlist name> @commands.command() async def showplaylist(self, ctx, *, args): if (match := re.match(r"^<?@?!?([0-9]+)>? (.+)$", args)): userID = match.group(1) playlist_name = match.group(2)