From 7e79dd416320a2cf20966daa6186841f0adbc308 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Sun, 5 Feb 2017 10:06:36 +0100 Subject: [PATCH] $waifuinfo will update target user's username and discrimnator in case they changed --- .../Modules/Gambling/Commands/WaifuClaimCommands.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/NadekoBot/Modules/Gambling/Commands/WaifuClaimCommands.cs b/src/NadekoBot/Modules/Gambling/Commands/WaifuClaimCommands.cs index f5a2a454..f04ebda8 100644 --- a/src/NadekoBot/Modules/Gambling/Commands/WaifuClaimCommands.cs +++ b/src/NadekoBot/Modules/Gambling/Commands/WaifuClaimCommands.cs @@ -403,6 +403,7 @@ namespace NadekoBot.Modules.Gambling x.UpdateType == WaifuUpdateType.Claimed && x.New == null); if (w == null) + { uow.Waifus.Add(w = new WaifuInfo() { Affinity = null, @@ -410,6 +411,10 @@ namespace NadekoBot.Modules.Gambling Price = 1, Waifu = uow.DiscordUsers.GetOrCreate(target), }); + } + + w.Waifu.Username = target.Username; + w.Waifu.Discriminator = target.Discriminator; await uow.CompleteAsync().ConfigureAwait(false); }