Browse Source

Merge e480eccaeb into 322d46e47b

pull/1097/merge
Allan GitHub 7 years ago
parent
commit
6754d8627c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      src/Discord.Net.Commands/Attributes/RemarkAttribute.cs
  2. +2
    -2
      src/Discord.Net.Commands/Builders/ModuleClassBuilder.cs

src/Discord.Net.Commands/Attributes/RemarksAttribute.cs → src/Discord.Net.Commands/Attributes/RemarkAttribute.cs View File

@@ -4,11 +4,11 @@ namespace Discord.Commands
{ {
// Extension of the Cosmetic Summary, for Groups, Commands, and Parameters // Extension of the Cosmetic Summary, for Groups, Commands, and Parameters
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class, AllowMultiple = false, Inherited = true)] [AttributeUsage(AttributeTargets.Method | AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public class RemarksAttribute : Attribute
public class RemarkAttribute : Attribute
{ {
public string Text { get; } public string Text { get; }


public RemarksAttribute(string text)
public RemarkAttribute(string text)
{ {
Text = text; Text = text;
} }

+ 2
- 2
src/Discord.Net.Commands/Builders/ModuleClassBuilder.cs View File

@@ -109,7 +109,7 @@ namespace Discord.Commands
case SummaryAttribute summary: case SummaryAttribute summary:
builder.Summary = summary.Text; builder.Summary = summary.Text;
break; break;
case RemarksAttribute remarks:
case RemarkAttribute remarks:
builder.Remarks = remarks.Text; builder.Remarks = remarks.Text;
break; break;
case AliasAttribute alias: case AliasAttribute alias:
@@ -169,7 +169,7 @@ namespace Discord.Commands
case SummaryAttribute summary: case SummaryAttribute summary:
builder.Summary = summary.Text; builder.Summary = summary.Text;
break; break;
case RemarksAttribute remarks:
case RemarkAttribute remarks:
builder.Remarks = remarks.Text; builder.Remarks = remarks.Text;
break; break;
case AliasAttribute alias: case AliasAttribute alias:


Loading…
Cancel
Save