Moved from record to class
This commit is contained in:
@@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user