Apply consistency to attributes in the commands extension (#928)

* Apply consistency to attributes in the commands extension

This resolves #527.

Not sure if I missed any, putting this up for review.

* Allow preconditions to be used multiple times (for use with groups)
This commit is contained in:
Christopher F
2018-01-08 12:56:31 -05:00
committed by GitHub
parent 42c879c37c
commit 97397f3617
15 changed files with 25 additions and 27 deletions

View File

@@ -1,8 +1,8 @@
using System;
using System;
namespace Discord.Commands
{
[AttributeUsage(AttributeTargets.Method)]
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public class CommandAttribute : Attribute
{
public string Text { get; }