summaryrefslogtreecommitdiff
path: root/DiscoBot/Auxiliary/CommandInfo.cs
diff options
context:
space:
mode:
authorKobert-P <kassiaK@yahoo.de>2018-06-07 11:21:55 +0200
committerKobert-P <kassiaK@yahoo.de>2018-06-07 11:21:55 +0200
commit5b87516befe2e4fd0d2f4b372747836d2abf0c8c (patch)
tree3287f86d862a26b401992bdf9eb2752c8bc517b3 /DiscoBot/Auxiliary/CommandInfo.cs
parenta8ec8940142303504f51c99384c6f86ee8fd7b2d (diff)
Multiline help description
Diffstat (limited to 'DiscoBot/Auxiliary/CommandInfo.cs')
-rw-r--r--DiscoBot/Auxiliary/CommandInfo.cs9
1 files changed, 7 insertions, 2 deletions
diff --git a/DiscoBot/Auxiliary/CommandInfo.cs b/DiscoBot/Auxiliary/CommandInfo.cs
index b08ba1b..90fbbc7 100644
--- a/DiscoBot/Auxiliary/CommandInfo.cs
+++ b/DiscoBot/Auxiliary/CommandInfo.cs
@@ -8,7 +8,7 @@ namespace DiscoBot.Auxiliary
{
public struct CommandInfo
{
- public CommandInfo(string name, string description, string scope)
+ public CommandInfo(string name, string[] description, string scope)
{
this.Name = name;
this.Scope = scope;
@@ -19,6 +19,11 @@ namespace DiscoBot.Auxiliary
public string Scope { get; }
- public string Description { get; }
+ public string[] Description { get; }
+
+ public string GetDescription()
+ {
+ return this.Description.Aggregate((s, c) => s + c);
+ }
}
}