using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BirthdayBot.Data;
internal static class Extensions {
///
/// Retrieves the database-backed guild configuration for the executing guild.
///
internal static async Task GetConfigAsync(this SocketGuild guild)
=> await GuildConfiguration.LoadAsync(guild.Id, false);
///
/// Retrieves the database-backed guild user configuration for this user.
///
internal static async Task GetConfigAsync(this SocketGuildUser user)
=> await GuildUserConfiguration.LoadAsync(user.Guild.Id, user.Id);
}