You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
818 B
31 lines
818 B
using System;
|
|
|
|
namespace Discord.Commands
|
|
{
|
|
/// <summary>
|
|
/// Marks the module as a command group.
|
|
/// </summary>
|
|
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
|
|
public class GroupAttribute : Attribute
|
|
{
|
|
/// <summary>
|
|
/// Gets the prefix set for the module.
|
|
/// </summary>
|
|
public string Prefix { get; }
|
|
|
|
/// <inheritdoc />
|
|
public GroupAttribute()
|
|
{
|
|
Prefix = null;
|
|
}
|
|
/// <summary>
|
|
/// Initializes a new <see cref="GroupAttribute" /> with the provided prefix.
|
|
/// </summary>
|
|
/// <param name="prefix">The prefix of the module group.</param>
|
|
public GroupAttribute(string prefix)
|
|
{
|
|
Prefix = prefix;
|
|
}
|
|
}
|
|
}
|