namespace Discord
{
///
/// An extension class for .
///
public static class GuildExtensions
{
///
/// Gets if welcome system messages are enabled.
///
/// The guild to check.
/// A bool indicating if the welcome messages are enabled in the system channel.
public static bool GetWelcomeMessagesEnabled(this IGuild guild)
=> !guild.SystemChannelFlags.HasFlag(SystemChannelMessageDeny.WelcomeMessage);
///
/// Gets if guild boost system messages are enabled.
///
/// The guild to check.
/// A bool indicating if the guild boost messages are enabled in the system channel.
public static bool GetGuildBoostMessagesEnabled(this IGuild guild)
=> !guild.SystemChannelFlags.HasFlag(SystemChannelMessageDeny.GuildBoost);
}
}