#nullable disable using NadekoBot.Db.Models; namespace NadekoBot.Modules.Administration.Services; public record struct ProtectionNotifyModel(ulong GuildId, ProtectionType ProtType, ulong UserId) : INotifyModel { public static string KeyName => "notify.protection"; public static NotifyType NotifyType => NotifyType.Protection; public IReadOnlyDictionary> GetReplacements() { var data = this; return new Dictionary>() { { "%event.type%", g => data.ProtType.ToString() }, }; } public bool TryGetUserId(out ulong userId) { userId = UserId; return true; } public bool TryGetGuildId(out ulong guildId) { guildId = GuildId; return true; } }