This commit is contained in:
2022-05-07 13:52:28 +03:00
parent d3d687ea2f
commit b9ff016caa
9 changed files with 35 additions and 4 deletions

View File

@@ -37,6 +37,15 @@ namespace MusicCommands
public async Task StartSendAudioFromLink(string URL)
{
/* using (HttpClient client = new HttpClient())
using (HttpResponseMessage response = await client.GetAsync(URL))
using (var content = response.Content)
{
await (await content.ReadAsStreamAsync()).CopyToAsync(outputStream);
}*/
Stream ms = new MemoryStream();
int bsize = 512;
new Thread(async delegate (object o)

View File

@@ -5,7 +5,6 @@ using Discord.WebSocket;
using Discord;
using PluginManager.Interfaces;
using PluginManager.Others;
namespace MusicCommands
{
@@ -19,7 +18,7 @@ namespace MusicCommands
public bool canUseDM => false;
public bool canUseServer => true;
public bool canUseServer => false;
public bool requireAdmin => false;