This commit is contained in:
2022-12-09 14:49:03 +02:00
2 changed files with 3 additions and 15 deletions

View File

@@ -88,7 +88,8 @@ namespace PluginManager
LogEvent?.Invoke(message);
}
public static void Write(char c)
public static void Write<T>(T c)
{
if (!isInitialized) throw new Exception("Logger is not initialized");
LogEvent?.Invoke($"{c}");

View File

@@ -1,17 +1,4 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.InteropServices;
using System.Text;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
using Discord.WebSocket;
using PluginManager.Items;
namespace PluginManager.Others;
namespace PluginManager.Others;
/// <summary>
/// A special class with functions