PluralKit/PluralKit.Core/Database/Functions/MessageContext.cs

41 lines
1.2 KiB
C#
Raw Normal View History

2021-08-27 11:03:47 -04:00
#nullable enable
using NodaTime;
namespace PluralKit.Core;
/// <summary>
/// Model for the `message_context` PL/pgSQL function in `functions.sql`
/// </summary>
public class MessageContext
{
2024-12-23 00:51:58 +00:00
public bool AllowAutoproxy { get; }
2024-12-23 00:51:58 +00:00
public SystemId? SystemId { get; }
public string? SystemTag { get; }
public string? SystemAvatar { get; }
2024-12-23 00:51:58 +00:00
public int? LatchTimeout { get; }
public bool CaseSensitiveProxyTags { get; }
public bool ProxyErrorMessageEnabled { get; }
public SystemConfig.ProxySwitchAction ProxySwitch { get; }
2024-12-23 00:51:58 +00:00
public string? NameFormat { get; }
public bool TagEnabled { get; }
public bool ProxyEnabled { get; }
public string? SystemGuildTag { get; }
public string? SystemGuildAvatar { get; }
public string? GuildNameFormat { get; }
public SwitchId? LastSwitch { get; }
public MemberId[] LastSwitchMembers { get; } = new MemberId[0];
public Instant? LastSwitchTimestamp { get; }
public ulong? LogChannel { get; }
public bool InBlacklist { get; }
public bool InLogBlacklist { get; }
public bool LogCleanupEnabled { get; }
public bool RequireSystemTag { get; }
2024-10-23 10:08:25 +13:00
public bool DenyBotUsage { get; }
public bool SuppressNotifications { get; }
}