using NadekoBot.Db.Models; namespace NadekoBot.Modules.Administration; public record struct LevelUpNotifyModel( ulong GuildId, ulong ChannelId, ulong UserId, long Level) : INotifyModel { public static string KeyName => "notify.levelup"; public static NotifyType NotifyType => NotifyType.LevelUp; public IReadOnlyDictionary> GetReplacements() { var data = this; return new Dictionary>() { { "%event.level%", g => data.Level.ToString() }, { "%event.user%", g => g.GetUser(data.UserId)?.ToString() ?? data.UserId.ToString() }, }; } public bool TryGetGuildId(out ulong guildId) { guildId = GuildId; return true; } public bool TryGetUserId(out ulong userId) { userId = UserId; return true; } }