Moved from record to class

This commit is contained in:
2024-05-22 11:04:14 +03:00
parent 4c8fd1a672
commit c87d1a89c5

View File

@@ -1,10 +1,16 @@
using System; using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DiscordBot namespace DiscordBot
{ {
internal record StartupAction(string Command, Action<string[]> RunAction) : IStartupAction; internal class StartupAction : IStartupAction
{
public string Command { get; init; }
public Action<string[]> RunAction { get; init; }
public StartupAction(string command, Action<string[]> runAction)
{
this.Command = command;
this.RunAction = runAction;
}
}
} }