RegexBot/Common/EntityType.cs
Noi 7b29753290 Update entity classes
EntityList's `enforceTypes` setting was removed, as EntityName
enforced entries being unambiguous anyway.
Added a way to enforce specific types on instantiation or else
throw an exception, and updated all existing uses requiring that
check accordingly.
2022-08-22 21:14:09 -07:00

18 lines
496 B
C#

namespace RegexBot.Common;
/// <summary>
/// The type of entity specified in an <see cref="EntityName"/>.
/// </summary>
public enum EntityType {
/// <summary>
/// Userd when the <see cref="EntityName"/> represents a role.
/// </summary>
Role,
/// <summary>
/// Used when the <see cref="EntityName"/> represents a channel.
/// </summary>
Channel,
/// <summary>
/// Used when the <see cref="EntityName"/> represents a user.
/// </summary>
User
}