changed NameAttribute to work for parameter (#765)

This commit is contained in:
Izumemori
2017-08-29 22:45:30 +02:00
committed by Christopher F
parent cb0ff7817d
commit 9c81ab9fe4
2 changed files with 4 additions and 1 deletions

View File

@@ -3,7 +3,7 @@ using System;
namespace Discord.Commands
{
// Override public name of command/module
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class)]
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class | AttributeTargets.Parameter)]
public class NameAttribute : Attribute
{
public string Text { get; }