This commit is contained in:
Binary file not shown.
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
7
MyCommandsLibrary/Class1.cs
Normal file
7
MyCommandsLibrary/Class1.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace MyCommandsLibrary
|
||||
{
|
||||
public class Class1
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
9
MyCommandsLibrary/MyCommandsLibrary.csproj
Normal file
9
MyCommandsLibrary/MyCommandsLibrary.csproj
Normal file
@@ -0,0 +1,9 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
@@ -2,7 +2,11 @@ using System;
|
||||
|
||||
namespace PluginManager.Others.Exceptions
|
||||
{
|
||||
/// <summary>
|
||||
/// Custom Exception for PluginManager
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
|
||||
public class APIException : Exception
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -10,6 +10,9 @@ using System.Threading;
|
||||
|
||||
namespace PluginManager.Others
|
||||
{
|
||||
/// <summary>
|
||||
/// A special class with functions
|
||||
/// </summary>
|
||||
public static class Functions
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user