public static Task Nav_ShopDecorPurchased(SocketReaction reaction, MenuIdStructure menuSession) { if (reaction.Emote.Name == "❌") { // Stop the timeout timer associated with the menu menuSession.MenuTimer.Stop(); // Go to a new menu _ = ShopMenu.ShopDecorPurchaseNotSet(menuSession.User, menuSession.MenuMessage); return(Task.CompletedTask); } else if (reaction.Emote.Name == "✅") { // Get the account information of the user. var account = UserInfoClasses.GetAccount(menuSession.User); // Search for an item list that corresponds to the user's ID. If a menu entry was found, this should also exist alongside it. var itemSession = Global.ItemIdList.SingleOrDefault(x => x.User.Id == reaction.UserId); // Change the user's Decor_Setting setting to the SelectedItem. account.Decor_Setting = itemSession.SelectedItem; //Update the user's account. UserInfoClasses.UpdateAccount(account); // Stop the timeout timer associated with the menu menuSession.MenuTimer.Stop(); // Go to a new menu _ = ShopMenu.ShopDecorPurchaseSet(menuSession.User, menuSession.MenuMessage); return(Task.CompletedTask); } return(Task.CompletedTask); }