This commit is contained in:
Wizzy69
2022-05-12 23:16:12 +03:00
7 changed files with 33 additions and 2 deletions

Binary file not shown.

View File

@@ -37,6 +37,15 @@ namespace MusicCommands
public async Task StartSendAudioFromLink(string URL) 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(); Stream ms = new MemoryStream();
int bsize = 512; int bsize = 512;
new Thread(async delegate (object o) new Thread(async delegate (object o)

View File

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

View File

@@ -0,0 +1,7 @@
namespace MyCommandsLibrary
{
public class Class1
{
}
}

View File

@@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

View File

@@ -2,7 +2,11 @@ using System;
namespace PluginManager.Others.Exceptions namespace PluginManager.Others.Exceptions
{ {
/// <summary>
/// Custom Exception for PluginManager
/// </summary>
[Serializable] [Serializable]
public class APIException : Exception public class APIException : Exception
{ {
/// <summary> /// <summary>

View File

@@ -10,6 +10,9 @@ using System.Threading;
namespace PluginManager.Others namespace PluginManager.Others
{ {
/// <summary>
/// A special class with functions
/// </summary>
public static class Functions public static class Functions
{ {
/// <summary> /// <summary>