RoboZhando/Entities/GuildSettings.cs
/// <summary>
/// Gets the prefix for a guild
/// </summary>
/// <param name="guild"></param>
/// <returns></returns>
Gets the prefix for a guild
Gets the prefix for a guild
public static async Task<string> GetPrefixAsync(IRedisClient redis, DiscordGuild guild)
        {
            if (_prefixCache.TryGetValue(guild.Id, out var prefix))
                return prefix;
            var settings = await GetSettingsAsync(redis, guild);
            return settings.Prefix;
        }
public static async Task < string > GetPrefixAsync ( IRedisClient redis , DiscordGuild guild ) { if ( _prefixCache . TryGetValue ( guild . Id , out var prefix ) ) return prefix ; var settings = await GetSettingsAsync ( redis , guild ) ; return settings . Prefix ; }
Gets the prefix for a guild
Gets the prefix for a guild
None
redis
IRedisClient
guild
DiscordGuild
None