From c87d1a89c5587f1398a23b2a07b5ba5abe76d19d Mon Sep 17 00:00:00 2001 From: Andrei Tudor Date: Wed, 22 May 2024 11:04:14 +0300 Subject: [PATCH] Moved from record to class --- DiscordBot/StartupAction.cs | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/DiscordBot/StartupAction.cs b/DiscordBot/StartupAction.cs index 8e7a94a..7f228fc 100644 --- a/DiscordBot/StartupAction.cs +++ b/DiscordBot/StartupAction.cs @@ -1,10 +1,16 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace DiscordBot { - internal record StartupAction(string Command, Action RunAction) : IStartupAction; + internal class StartupAction : IStartupAction + { + public string Command { get; init; } + public Action RunAction { get; init; } + + public StartupAction(string command, Action runAction) + { + this.Command = command; + this.RunAction = runAction; + } + } }