mcdiscordbot/MinecraftDiscordBot/Models/MessageTypeAttribute.cs
Michael Chen 92aafcde70
Smarter message parsing
Future: make return params dynamic, not string
now requires type in message objects
2022-01-17 16:23:34 +01:00

8 lines
275 B
C#

namespace MinecraftDiscordBot.Models;
[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)]
public sealed class MessageTypeAttribute : Attribute {
public MessageTypeAttribute(string type) => Name = type;
public string Name { get; }
}