DiscordExtensionLib/Discord/Attribute/EventControllerAttribute.cs
Dultus 42bf94c00a Integrated Controller control. The methods InvokeEventControllerClass and ExecuteController should be used by the user.
InvokeEventControllerClassis to be put in the Discord Controllers that use the Discord Ids and the ExecuteController should be put in their own separated classes.
2023-04-06 14:53:28 +02:00

17 lines
No EOL
522 B
C#

namespace Discord.Attribute
{
using Controller;
/// <summary>
/// To be placed over dynamic methods that will be executed by the <see cref="EventController"></see>
/// </summary>
/// <typeparam name="T"></typeparam>
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
public class EventControllerAttribute<T> : System.Attribute
{
public T Event { get; set; }
public EventControllerAttribute(T Event)
{
this.Event = Event;
}
}
}