| @@ -18,7 +18,7 @@ namespace Discord | |||||
| /// <see href="https://discord.com/developers/docs/reference#api-versioning">Discord API documentation</see> | /// <see href="https://discord.com/developers/docs/reference#api-versioning">Discord API documentation</see> | ||||
| /// .</para> | /// .</para> | ||||
| /// </returns> | /// </returns> | ||||
| public const int APIVersion = 9; | |||||
| public const int APIVersion = 10; | |||||
| /// <summary> | /// <summary> | ||||
| /// Returns the Voice API version Discord.Net uses. | /// Returns the Voice API version Discord.Net uses. | ||||
| /// </summary> | /// </summary> | ||||
| @@ -48,6 +48,9 @@ namespace Discord | |||||
| /// <summary> | /// <summary> | ||||
| /// Gets the content for this message. | /// Gets the content for this message. | ||||
| /// </summary> | /// </summary> | ||||
| /// <remarks> | |||||
| /// This will be <see langword="null"/> if the privileged message intent is disabled. | |||||
| /// </remarks> | |||||
| /// <returns> | /// <returns> | ||||
| /// A string that contains the body of the message; note that this field may be empty if there is an embed. | /// A string that contains the body of the message; note that this field may be empty if there is an embed. | ||||
| /// </returns> | /// </returns> | ||||
| @@ -55,6 +58,9 @@ namespace Discord | |||||
| /// <summary> | /// <summary> | ||||
| /// Gets the clean content for this message. | /// Gets the clean content for this message. | ||||
| /// </summary> | /// </summary> | ||||
| /// <remarks> | |||||
| /// This will be <see langword="null"/> if the privileged message intent is disabled. | |||||
| /// </remarks> | |||||
| /// <returns> | /// <returns> | ||||
| /// A string that contains the body of the message stripped of mentions, markdown, emojis and pings; note that this field may be empty if there is an embed. | /// A string that contains the body of the message stripped of mentions, markdown, emojis and pings; note that this field may be empty if there is an embed. | ||||
| /// </returns> | /// </returns> | ||||
| @@ -39,7 +39,14 @@ namespace Discord | |||||
| DirectMessageReactions = 1 << 13, | DirectMessageReactions = 1 << 13, | ||||
| /// <summary> This intent includes TYPING_START </summary> | /// <summary> This intent includes TYPING_START </summary> | ||||
| DirectMessageTyping = 1 << 14, | DirectMessageTyping = 1 << 14, | ||||
| /// <summary> This intent includes GUILD_SCHEDULED_EVENT_CREATE, GUILD_SCHEDULED_EVENT_UPDATE, GUILD_SCHEDULED_EVENT_DELETE, GUILD_SCHEDULED_EVENT_USER_ADD, GUILD_SCHEDULED_EVENT_USER_REMOVE </summary> | |||||
| /// <summary> | |||||
| /// This intent defines if the content within messages received by MESSAGE_CREATE is available or not. | |||||
| /// This is a privileged intent and needs to be enabled in the developer portal. | |||||
| /// </summary> | |||||
| MessageContent = 1 << 15, | |||||
| /// <summary> | |||||
| /// This intent includes GUILD_SCHEDULED_EVENT_CREATE, GUILD_SCHEDULED_EVENT_UPDATE, GUILD_SCHEDULED_EVENT_DELETE, GUILD_SCHEDULED_EVENT_USER_ADD, GUILD_SCHEDULED_EVENT_USER_REMOVE | |||||
| /// </summary> | |||||
| GuildScheduledEvents = 1 << 16, | GuildScheduledEvents = 1 << 16, | ||||
| /// <summary> | /// <summary> | ||||
| /// This intent includes all but <see cref="GuildMembers"/> and <see cref="GuildPresences"/> | /// This intent includes all but <see cref="GuildMembers"/> and <see cref="GuildPresences"/> | ||||
| @@ -51,6 +58,6 @@ namespace Discord | |||||
| /// <summary> | /// <summary> | ||||
| /// This intent includes all of them, including privileged ones. | /// This intent includes all of them, including privileged ones. | ||||
| /// </summary> | /// </summary> | ||||
| All = AllUnprivileged | GuildMembers | GuildPresences | |||||
| All = AllUnprivileged | GuildMembers | GuildPresences | MessageContent | |||||
| } | } | ||||
| } | } | ||||