This commit is contained in:
2022-04-09 10:18:39 +03:00
parent 3d4c9ae9ea
commit 1e7387cfa7
11 changed files with 186 additions and 15 deletions

View File

@@ -0,0 +1,26 @@
using Discord.Net;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
namespace MusicCommands
{
public class LinkMusic
{
private string URL;
public LinkMusic(string URL)
{
this.URL = URL;
}
public async Task<Stream> GetMusicStreamAsync()
{
WebClient client = new WebClient();
return await client.OpenReadTaskAsync(this.URL);
}
}
}