namespace BirthdayBot.Data;
internal static class Extensions {
///
/// Retrieves the database-backed bot configuration for this guild.
///
internal static async Task GetConfigAsync(this SocketGuild guild)
=> await GuildConfiguration.LoadAsync(guild.Id, false);
///
/// Retrieves a collection of all existing user configurations for this guild.
///
internal static async Task> GetUserConfigurationsAsync(this SocketGuild guild)
=> await GuildUserConfiguration.LoadAllAsync(guild.Id);
///
/// Retrieves the database-backed bot configuration (birthday info) for this guild user.
///
internal static async Task GetConfigAsync(this SocketGuildUser user)
=> await GuildUserConfiguration.LoadAsync(user.Guild.Id, user.Id);
}