Noi
7b29753290
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.
18 lines
496 B
C#
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
|
|
}
|