diff --git a/src/Discord.Net.Core/Discord.Net.Core.xml b/src/Discord.Net.Core/Discord.Net.Core.xml
index 1ab7ab78d..8e54d8ab6 100644
--- a/src/Discord.Net.Core/Discord.Net.Core.xml
+++ b/src/Discord.Net.Core/Discord.Net.Core.xml
@@ -3114,6 +3114,14 @@
language tag format.
+
+
+ Gets the NSFW level of this guild.
+
+
+ The NSFW level of this guild.
+
+
Gets the preferred culture of this guild.
@@ -3891,6 +3899,26 @@
Users must have MFA enabled on their account to perform administrative actions.
+
+
+ Default or unset.
+
+
+
+
+ Guild has extremely suggestive or mature content that would only be suitable for users 18 or over.
+
+
+
+
+ Guild has no content that could be deemed NSFW; in other words, SFW.
+
+
+
+
+ Guild has mildly NSFW content that may not be suitable for users under 18.
+
+
Specifies the target of the permission.
@@ -7554,10 +7582,38 @@
The message for when a news channel subscription is added to a text channel.
+
+
+ The message for when a guild is disqualified from discovery.
+
+
+
+
+ The message for when a guild is requalified for discovery.
+
+
+
+
+ The message for when the initial warning is sent for the initial grace period discovery.
+
+
+
+
+ The message for when the final warning is sent for the initial grace period discovery.
+
+
+
+
+ The message for when a thread is created.
+
+
The message is an inline reply.
+
+ Only available in API v8
+
@@ -7567,6 +7623,19 @@
Only available in API v8
+
+
+ The message that starts a thread.
+
+
+ Only available in API v9
+
+
+
+
+ The message for a invite reminder
+
+
A metadata containing reaction information.
diff --git a/src/Discord.Net.Core/Entities/Guilds/IGuild.cs b/src/Discord.Net.Core/Entities/Guilds/IGuild.cs
index b8fd858df..e3b0533eb 100644
--- a/src/Discord.Net.Core/Entities/Guilds/IGuild.cs
+++ b/src/Discord.Net.Core/Entities/Guilds/IGuild.cs
@@ -316,6 +316,14 @@ namespace Discord
///
string PreferredLocale { get; }
+ ///
+ /// Gets the NSFW level of this guild.
+ ///
+ ///
+ /// The NSFW level of this guild.
+ ///
+ NsfwLevel NsfwLevel { get; }
+
///
/// Gets the preferred culture of this guild.
///
diff --git a/src/Discord.Net.Core/Entities/Guilds/NsfwLevel.cs b/src/Discord.Net.Core/Entities/Guilds/NsfwLevel.cs
new file mode 100644
index 000000000..e3ac345d9
--- /dev/null
+++ b/src/Discord.Net.Core/Entities/Guilds/NsfwLevel.cs
@@ -0,0 +1,22 @@
+namespace Discord
+{
+ public enum NsfwLevel
+ {
+ ///
+ /// Default or unset.
+ ///
+ Default = 0,
+ ///
+ /// Guild has extremely suggestive or mature content that would only be suitable for users 18 or over.
+ ///
+ Explicit = 1,
+ ///
+ /// Guild has no content that could be deemed NSFW; in other words, SFW.
+ ///
+ Safe = 2,
+ ///
+ /// Guild has mildly NSFW content that may not be suitable for users under 18.
+ ///
+ AgeRestricted = 3
+ }
+}
\ No newline at end of file
diff --git a/src/Discord.Net.Rest/API/Common/Guild.cs b/src/Discord.Net.Rest/API/Common/Guild.cs
index ba09f9b8a..a22df9a30 100644
--- a/src/Discord.Net.Rest/API/Common/Guild.cs
+++ b/src/Discord.Net.Rest/API/Common/Guild.cs
@@ -78,5 +78,7 @@ namespace Discord.API
public Optional ApproximatePresenceCount { get; set; }
[JsonProperty("threads")]
public Optional Threads { get; set; }
+ [JsonProperty("nsfw_level")]
+ public NsfwLevel NsfwLevel { get; set; }
}
}
diff --git a/src/Discord.Net.Rest/Discord.Net.Rest.xml b/src/Discord.Net.Rest/Discord.Net.Rest.xml
index eda180f01..a30a6e2b4 100644
--- a/src/Discord.Net.Rest/Discord.Net.Rest.xml
+++ b/src/Discord.Net.Rest/Discord.Net.Rest.xml
@@ -2896,6 +2896,9 @@
+
+
+
diff --git a/src/Discord.Net.Rest/Entities/Guilds/RestGuild.cs b/src/Discord.Net.Rest/Entities/Guilds/RestGuild.cs
index 37491909c..a130dcef9 100644
--- a/src/Discord.Net.Rest/Entities/Guilds/RestGuild.cs
+++ b/src/Discord.Net.Rest/Entities/Guilds/RestGuild.cs
@@ -83,6 +83,8 @@ namespace Discord.Rest
public int? ApproximateMemberCount { get; private set; }
///
public int? ApproximatePresenceCount { get; private set; }
+ ///
+ public NsfwLevel NsfwLevel { get; private set; }
///
public CultureInfo PreferredCulture { get; private set; }
@@ -151,6 +153,7 @@ namespace Discord.Rest
SystemChannelFlags = model.SystemChannelFlags;
Description = model.Description;
PremiumSubscriptionCount = model.PremiumSubscriptionCount.GetValueOrDefault();
+ NsfwLevel = model.NsfwLevel;
if (model.MaxPresences.IsSpecified)
MaxPresences = model.MaxPresences.Value ?? 25000;
if (model.MaxMembers.IsSpecified)
diff --git a/src/Discord.Net.WebSocket/Discord.Net.WebSocket.xml b/src/Discord.Net.WebSocket/Discord.Net.WebSocket.xml
index b17f73024..90cc3dbd2 100644
--- a/src/Discord.Net.WebSocket/Discord.Net.WebSocket.xml
+++ b/src/Discord.Net.WebSocket/Discord.Net.WebSocket.xml
@@ -2787,6 +2787,9 @@
+
+
+
@@ -3492,7 +3495,7 @@
The message that contained the trigger for this interaction.
-
+
@@ -3503,7 +3506,7 @@
The request options for this async request.
A task that represents the asynchronous operation of updating the message.
-
+
@@ -3619,10 +3622,10 @@
The data associated with this interaction.
-
+
-
+
@@ -3708,12 +3711,12 @@
if the token is valid for replying to, otherwise .
-
+
Responds to an Interaction with type .
If you have set to , You should use
- instead.
+ instead.
The text of the message to be sent.
@@ -3723,10 +3726,11 @@
The allowed mentions for this response.
The request options for this response.
A to be sent with this response
+ A single embed to send with this response. If this is passed alongside an array of embeds, the single embed will be ignored.
Message content is too long, length must be less or equal to .
The parameters provided were invalid or the token was invalid.
-
+
Sends a followup message for this interaction.
@@ -3737,6 +3741,7 @@
The allowed mentions for this response.
The request options for this response.
A to be sent with this response
+ A single embed to send with this response. If this is passed alongside an array of embeds, the single embed will be ignored.
The sent message.
diff --git a/src/Discord.Net.WebSocket/Entities/Guilds/SocketGuild.cs b/src/Discord.Net.WebSocket/Entities/Guilds/SocketGuild.cs
index f720db018..2fef6ff09 100644
--- a/src/Discord.Net.WebSocket/Entities/Guilds/SocketGuild.cs
+++ b/src/Discord.Net.WebSocket/Entities/Guilds/SocketGuild.cs
@@ -118,6 +118,8 @@ namespace Discord.WebSocket
public int? MaxMembers { get; private set; }
///
public int? MaxVideoChannelUsers { get; private set; }
+ ///
+ public NsfwLevel NsfwLevel { get; private set; }
///
public CultureInfo PreferredCulture { get; private set; }
@@ -464,6 +466,7 @@ namespace Discord.WebSocket
SystemChannelFlags = model.SystemChannelFlags;
Description = model.Description;
PremiumSubscriptionCount = model.PremiumSubscriptionCount.GetValueOrDefault();
+ NsfwLevel = model.NsfwLevel;
if (model.MaxPresences.IsSpecified)
MaxPresences = model.MaxPresences.Value ?? 25000;
if (model.MaxMembers.IsSpecified)