summaryrefslogtreecommitdiff
path: root/DiscoBot/Auxiliary/CommandInfo.cs
blob: dfed417d7c4f35b3ba487eaec88674ddbeea5771 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DiscoBot.Auxiliary
{
    public struct CommandInfo
    {
        public CommandInfo(string name, string brief, string[] description, string scope)
        {
            this.Name = name;
            this.Scope = scope;
            this.Brief = brief;
            this.Description = description;
        }

        public string Name { get; }

        public string Scope { get; }

        public string Brief { get; }

        public string[] Description { get; }

        public string GetDescription()
        {
            return this.Description.Aggregate((s, c) => s + c);
        }
    }
}