From ecaedcf9f3a1e996d3cc8a4d59b32df563ae61e2 Mon Sep 17 00:00:00 2001 From: Sarah Faey Date: Mon, 12 Dec 2022 14:11:53 +0100 Subject: [PATCH] added special discord error message for not equipped builds --- Lieb/Data/RaidService.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Lieb/Data/RaidService.cs b/Lieb/Data/RaidService.cs index ec83689..9250f95 100644 --- a/Lieb/Data/RaidService.cs +++ b/Lieb/Data/RaidService.cs @@ -439,7 +439,7 @@ namespace Lieb.Data return false; } - public bool IsRaidSignUpAllowed(ulong liebUserId, int raidId, out string errorMessage, bool ignoreRole = false) + public bool IsRaidSignUpAllowed(ulong liebUserId, int raidId, out string errorMessage, bool ignoreRole = false, bool discordErrorMessage = false) { errorMessage = string.Empty; using var context = _contextFactory.CreateDbContext(); @@ -473,7 +473,10 @@ namespace Lieb.Data if (raid.RaidType != RaidType.Planned && !user.GuildWars2Accounts.Where(a => a.EquippedBuilds.Where(b => b.GuildWars2Build.UseInRandomRaid).Count() > 0).Any()) { - errorMessage = "No equipped Guild Wars 2 build found."; + if(discordErrorMessage) + errorMessage = "No equipped Guild Wars 2 build found. Please add your builds at https://lieb.games"; + else + errorMessage = "No equipped Guild Wars 2 build found."; return false; }