2021-11-26 21:10:56 -05:00
|
|
|
namespace PluralKit.Core;
|
|
|
|
|
|
|
|
|
|
public class GuildConfig
|
2020-06-13 13:58:27 +02:00
|
|
|
{
|
2021-11-26 21:10:56 -05:00
|
|
|
public ulong Id { get; }
|
|
|
|
|
public ulong? LogChannel { get; }
|
|
|
|
|
public ulong[] LogBlacklist { get; }
|
|
|
|
|
public ulong[] Blacklist { get; }
|
|
|
|
|
public bool LogCleanupEnabled { get; }
|
2024-11-10 15:46:36 +13:00
|
|
|
public bool InvalidCommandResponseEnabled { get; }
|
|
|
|
|
public bool RequireSystemTag { get; }
|
2026-01-13 19:26:10 -07:00
|
|
|
public SuppressCondition SuppressNotifications { get; }
|
|
|
|
|
|
|
|
|
|
public enum SuppressCondition
|
|
|
|
|
{
|
|
|
|
|
Never = 0,
|
|
|
|
|
Always = 1,
|
|
|
|
|
Match = 2,
|
|
|
|
|
Invert = 3,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static class GuildConfigExt
|
|
|
|
|
{
|
|
|
|
|
public static string ToUserString(this GuildConfig.SuppressCondition val) => val.ToString().ToLower();
|
2020-06-13 13:58:27 +02:00
|
|
|
}
|