23 lines
466 B
C#
23 lines
466 B
C#
using System;
|
|
|
|
namespace Discord.Commands
|
|
{
|
|
[AttributeUsage(AttributeTargets.Class)]
|
|
public class ModuleAttribute : Attribute
|
|
{
|
|
public string Prefix { get; }
|
|
public bool AutoLoad { get; set; }
|
|
|
|
public ModuleAttribute()
|
|
{
|
|
Prefix = null;
|
|
AutoLoad = true;
|
|
}
|
|
public ModuleAttribute(string prefix)
|
|
{
|
|
Prefix = prefix;
|
|
AutoLoad = true;
|
|
}
|
|
}
|
|
}
|