|
|
@@ -20,5 +20,21 @@ namespace Discord |
|
|
|
/// <returns> A <c>bool</c> indicating if the guild boost messages are enabled in the system channel. </returns> |
|
|
|
public static bool GetGuildBoostMessagesEnabled(this IGuild guild) |
|
|
|
=> !guild.SystemChannelFlags.HasFlag(SystemChannelMessageDeny.GuildBoost); |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// Gets if guild setup system messages are enabled. |
|
|
|
/// </summary> |
|
|
|
/// <param name="guild"> The guild to check. </param> |
|
|
|
/// <returns> A <c>bool</c> indicating if the guild setup messages are enabled in the system channel. </returns> |
|
|
|
public static bool GetGuildSetupTipMessagesEnabled(this IGuild guild) |
|
|
|
=> !guild.SystemChannelFlags.HasFlag(SystemChannelMessageDeny.GuildSetupTip); |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// Gets if guild welcome messages have a reply with sticker button. |
|
|
|
/// </summary> |
|
|
|
/// <param name="guild"> The guild to check. </param> |
|
|
|
/// <returns> A <c>bool</c> indicating if the guild welcome messages have a reply with sticker button. </returns> |
|
|
|
public static bool GetGuildWelcomeMessageReplyEnabled(this IGuild guild) |
|
|
|
=> !guild.SystemChannelFlags.HasFlag(SystemChannelMessageDeny.WelcomeMessageReply); |
|
|
|
} |
|
|
|
} |