src/DiscordBot/Core/UserAccounts/Currency.cs
/// <summary>
/// Attempts to locate the currency of the user given using only a string of their name instead of their account.
/// If there are no matches, it will return a null dictionary.
/// </summary>
Attempts to locate the currency of the user given using only a string of their name instead of their account.
If there are no matches, it will return a null dictionary.
Attempts to locate the currency of the user given using only a string of their name instead of their account . If there are no matches it will return a null dictionary .
public static Dictionary<string, int> GetUserCurrency(string testName)
        {
            var userCurrency = new Dictionary<string, int>();
            var user = Functions.GetUserWithSimilarName(testName);
            if (user != null) userCurrency.Add(user.Username, UserAccounts.GetAccount(user).Currency);
            else userCurrency = null;
            return userCurrency;
        }
public static Dictionary < string , int > GetUserCurrency ( string testName ) { var userCurrency = new Dictionary < string , int > ( ) ; var user = Functions . GetUserWithSimilarName ( testName ) ; if ( user != null ) userCurrency . Add ( user . Username , UserAccounts . GetAccount ( user ) . Currency ) ; else userCurrency = null ; return userCurrency ; }
Attempts to locate the currency of the user given using only a string of their name instead of their account.
Attempts to locate the currency of the user given using only a string of their name instead of their account .
testName
string