Browse Source

Changed RemarksAttribute to RemarkAttribute because the attribute usage is set to `AllowMultiple = false` so the 's' in 'Remarks' was misleading

pull/1097/head
Allan 7 years ago
parent
commit
e480eccaeb
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
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public class RemarksAttribute : Attribute
public class RemarkAttribute : Attribute
{
public string Text { get; }

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

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

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


Loading…
Cancel
Save