mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 17:28:27 -04:00
15 lines
513 B
C#
15 lines
513 B
C#
#nullable enable
|
|
using System.Collections.Generic;
|
|
using System.Text.RegularExpressions;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace NadekoBot.Core.Modules.Music
|
|
{
|
|
public interface IYoutubeResolver : IPlatformQueryResolver
|
|
{
|
|
public Regex YtVideoIdRegex { get; }
|
|
public Task<ITrackInfo?> ResolveByIdAsync(string id);
|
|
IAsyncEnumerable<ITrackInfo> ResolveTracksFromPlaylistAsync(string query);
|
|
Task<ITrackInfo?> ResolveByQueryAsync(string query, bool tryExtractingId);
|
|
}
|
|
} |