[Refactor] Refactor some stuff (#2688)

* fix some `internal` classes being exposed

* update xmldoc comments to use `<see langword>`

* bump library version in samples

* fix possible oversight
This commit is contained in:
Misha133
2023-06-27 17:11:16 +03:00
committed by GitHub
parent fe4130df45
commit 9ddd922d2f
119 changed files with 326 additions and 324 deletions

View File

@@ -6,7 +6,7 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Discord.Net.WebSocket" Version="3.8.1"/> <PackageReference Include="Discord.Net.WebSocket" Version="3.10.0"/>
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@@ -13,7 +13,7 @@
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="5.0.0" /> <PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="5.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="5.0.0" /> <PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="5.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="5.0.2" /> <PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="5.0.2" />
<PackageReference Include="Discord.Net.Interactions" Version="3.8.1" /> <PackageReference Include="Discord.Net.Interactions" Version="3.10.0" />
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@@ -8,7 +8,7 @@
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="5.0.2" /> <PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="5.0.2" />
<PackageReference Include="Discord.Net" Version="3.8.1" /> <PackageReference Include="Discord.Net" Version="3.10.0" />
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@@ -8,8 +8,8 @@
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="5.0.2" /> <PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="5.0.2" />
<PackageReference Include="Discord.Net.Commands" Version="3.8.1" /> <PackageReference Include="Discord.Net.Commands" Version="3.10.0" />
<PackageReference Include="Discord.Net.Websocket" Version="3.8.1" /> <PackageReference Include="Discord.Net.Websocket" Version="3.10.0" />
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@@ -7,7 +7,7 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Discord.Net.Webhook" Version="3.8.1" /> <PackageReference Include="Discord.Net.Webhook" Version="3.10.0" />
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@@ -15,7 +15,7 @@ namespace Discord.Commands
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// <see cref="Preconditions" /> of the same group require only one of the preconditions to pass in order to /// <see cref="Preconditions" /> of the same group require only one of the preconditions to pass in order to
/// be successful (A || B). Specifying <see cref="Group" /> = <c>null</c> or not at all will /// be successful (A || B). Specifying <see cref="Group" /> = <see langword="null" /> or not at all will
/// require *all* preconditions to pass, just like normal (A &amp;&amp; B). /// require *all* preconditions to pass, just like normal (A &amp;&amp; B).
/// </remarks> /// </remarks>
public string Group { get; set; } = null; public string Group { get; set; } = null;

View File

@@ -163,7 +163,7 @@ namespace Discord.Commands
/// </code> /// </code>
/// </example> /// </example>
/// <typeparam name="T">The type of module.</typeparam> /// <typeparam name="T">The type of module.</typeparam>
/// <param name="services">The <see cref="IServiceProvider"/> for your dependency injection solution if using one; otherwise, pass <c>null</c>.</param> /// <param name="services">The <see cref="IServiceProvider"/> for your dependency injection solution if using one; otherwise, pass <see langword="null" />.</param>
/// <exception cref="ArgumentException">This module has already been added.</exception> /// <exception cref="ArgumentException">This module has already been added.</exception>
/// <exception cref="InvalidOperationException"> /// <exception cref="InvalidOperationException">
/// The <see cref="ModuleInfo"/> fails to be built; an invalid type may have been provided. /// The <see cref="ModuleInfo"/> fails to be built; an invalid type may have been provided.
@@ -178,7 +178,7 @@ namespace Discord.Commands
/// Adds a command module from a <see cref="Type" />. /// Adds a command module from a <see cref="Type" />.
/// </summary> /// </summary>
/// <param name="type">The type of module.</param> /// <param name="type">The type of module.</param>
/// <param name="services">The <see cref="IServiceProvider" /> for your dependency injection solution if using one; otherwise, pass <c>null</c> .</param> /// <param name="services">The <see cref="IServiceProvider" /> for your dependency injection solution if using one; otherwise, pass <see langword="null" /> .</param>
/// <exception cref="ArgumentException">This module has already been added.</exception> /// <exception cref="ArgumentException">This module has already been added.</exception>
/// <exception cref="InvalidOperationException"> /// <exception cref="InvalidOperationException">
/// The <see cref="ModuleInfo"/> fails to be built; an invalid type may have been provided. /// The <see cref="ModuleInfo"/> fails to be built; an invalid type may have been provided.
@@ -217,7 +217,7 @@ namespace Discord.Commands
/// Add command modules from an <see cref="Assembly"/>. /// Add command modules from an <see cref="Assembly"/>.
/// </summary> /// </summary>
/// <param name="assembly">The <see cref="Assembly"/> containing command modules.</param> /// <param name="assembly">The <see cref="Assembly"/> containing command modules.</param>
/// <param name="services">The <see cref="IServiceProvider"/> for your dependency injection solution if using one; otherwise, pass <c>null</c>.</param> /// <param name="services">The <see cref="IServiceProvider"/> for your dependency injection solution if using one; otherwise, pass <see langword="null" />.</param>
/// <returns> /// <returns>
/// A task that represents the asynchronous operation for adding the command modules. The task result /// A task that represents the asynchronous operation for adding the command modules. The task result
/// contains an enumerable collection of modules added. /// contains an enumerable collection of modules added.

View File

@@ -14,7 +14,7 @@ namespace Discord.Commands
/// <param name="c">The char prefix.</param> /// <param name="c">The char prefix.</param>
/// <param name="argPos">References where the command starts.</param> /// <param name="argPos">References where the command starts.</param>
/// <returns> /// <returns>
/// <c>true</c> if the message begins with the char <paramref name="c"/>; otherwise <c>false</c>. /// <see langword="true" /> if the message begins with the char <paramref name="c"/>; otherwise <see langword="false" />.
/// </returns> /// </returns>
public static bool HasCharPrefix(this IUserMessage msg, char c, ref int argPos) public static bool HasCharPrefix(this IUserMessage msg, char c, ref int argPos)
{ {

View File

@@ -34,7 +34,7 @@ namespace Discord.Commands
/// <param name="embed">An embed to be displayed alongside the <paramref name="message"/>.</param> /// <param name="embed">An embed to be displayed alongside the <paramref name="message"/>.</param>
/// <param name="allowedMentions"> /// <param name="allowedMentions">
/// Specifies if notifications are sent for mentioned users and roles in the <paramref name="message"/>. /// Specifies if notifications are sent for mentioned users and roles in the <paramref name="message"/>.
/// If <c>null</c>, all mentioned roles and users will be notified. /// If <see langword="null" />, all mentioned roles and users will be notified.
/// </param> /// </param>
/// <param name="options">The request options for this <see langword="async"/> request.</param> /// <param name="options">The request options for this <see langword="async"/> request.</param>
/// <param name="messageReference">The message references to be included. Used to reply to specific messages.</param> /// <param name="messageReference">The message references to be included. Used to reply to specific messages.</param>

View File

@@ -76,7 +76,7 @@ namespace Discord.Commands
/// Gets a string that indicates the execution result. /// Gets a string that indicates the execution result.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// <c>Success</c> if <see cref="IsSuccess"/> is <c>true</c>; otherwise "<see cref="Error"/>: /// <c>Success</c> if <see cref="IsSuccess"/> is <see langword="true" />; otherwise "<see cref="Error"/>:
/// <see cref="ErrorReason"/>". /// <see cref="ErrorReason"/>".
/// </returns> /// </returns>
public override string ToString() => IsSuccess ? "Success" : $"{Error}: {ErrorReason}"; public override string ToString() => IsSuccess ? "Success" : $"{Error}: {ErrorReason}";

View File

@@ -10,7 +10,7 @@ namespace Discord.Commands
/// </summary> /// </summary>
/// <returns> /// <returns>
/// A <see cref="CommandError" /> indicating the type of error that may have occurred during the operation; /// A <see cref="CommandError" /> indicating the type of error that may have occurred during the operation;
/// <c>null</c> if the operation was successful. /// <see langword="null" /> if the operation was successful.
/// </returns> /// </returns>
CommandError? Error { get; } CommandError? Error { get; }
/// <summary> /// <summary>
@@ -24,7 +24,7 @@ namespace Discord.Commands
/// Indicates whether the operation was successful or not. /// Indicates whether the operation was successful or not.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// <c>true</c> if the result is positive; otherwise <c>false</c>. /// <see langword="true" /> if the result is positive; otherwise <see langword="false" />.
/// </returns> /// </returns>
bool IsSuccess { get; } bool IsSuccess { get; }
} }

View File

@@ -23,7 +23,7 @@ namespace Discord.Commands
/// </summary> /// </summary>
/// <returns> /// <returns>
/// A <see cref="ParameterInfo" /> indicating the parameter info of the error that may have occurred during parsing; /// A <see cref="ParameterInfo" /> indicating the parameter info of the error that may have occurred during parsing;
/// <c>null</c> if the parsing was successful or the parsing error is not specific to a single parameter. /// <see langword="null" /> if the parsing was successful or the parsing error is not specific to a single parameter.
/// </returns> /// </returns>
public ParameterInfo ErrorParameter { get; } public ParameterInfo ErrorParameter { get; }

View File

@@ -8,7 +8,7 @@ namespace Discord.Commands
/// <summary> /// <summary>
/// Initializes a new <see cref="RuntimeResult" /> class with the type of error and reason. /// Initializes a new <see cref="RuntimeResult" /> class with the type of error and reason.
/// </summary> /// </summary>
/// <param name="error">The type of failure, or <c>null</c> if none.</param> /// <param name="error">The type of failure, or <see langword="null" /> if none.</param>
/// <param name="reason">The reason of failure.</param> /// <param name="reason">The reason of failure.</param>
protected RuntimeResult(CommandError? error, string reason) protected RuntimeResult(CommandError? error, string reason)
{ {

View File

@@ -170,7 +170,7 @@ namespace Discord
/// Gets or sets whether the initial log entry should be printed. /// Gets or sets whether the initial log entry should be printed.
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// If set to <c>true</c>, the library will attempt to print the current version of the library, as well as /// If set to <see langword="true" />, the library will attempt to print the current version of the library, as well as
/// the API version it uses on startup. /// the API version it uses on startup.
/// </remarks> /// </remarks>
internal bool DisplayInitialLog { get; set; } = true; internal bool DisplayInitialLog { get; set; } = true;
@@ -179,7 +179,7 @@ namespace Discord
/// Gets or sets whether or not rate-limits should use the system clock. /// Gets or sets whether or not rate-limits should use the system clock.
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// If set to <c>false</c>, we will use the X-RateLimit-Reset-After header /// If set to <see langword="false" />, we will use the X-RateLimit-Reset-After header
/// to determine when a rate-limit expires, rather than comparing the /// to determine when a rate-limit expires, rather than comparing the
/// X-RateLimit-Reset timestamp to the system time. /// X-RateLimit-Reset timestamp to the system time.
/// ///

View File

@@ -30,7 +30,7 @@ namespace Discord
/// <param name="size">The size of the image to return in. This can be any power of two between 16 and 2048.</param> /// <param name="size">The size of the image to return in. This can be any power of two between 16 and 2048.</param>
/// <param name="format">The format to return.</param> /// <param name="format">The format to return.</param>
/// <returns> /// <returns>
/// A string pointing to the image URL of the asset; <c>null</c> when the application ID does not exist. /// A string pointing to the image URL of the asset; <see langword="null" /> when the application ID does not exist.
/// </returns> /// </returns>
public string GetImageUrl(ImageFormat format = ImageFormat.Auto, ushort size = 128) public string GetImageUrl(ImageFormat format = ImageFormat.Auto, ushort size = 128)
=> ApplicationId.HasValue ? CDN.GetRichAssetUrl(ApplicationId.Value, ImageId, size, format) : null; => ApplicationId.HasValue ? CDN.GetRichAssetUrl(ApplicationId.Value, ImageId, size, format) : null;

View File

@@ -23,7 +23,7 @@ namespace Discord
/// Gets the data for this entry. /// Gets the data for this entry.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// An <see cref="IAuditLogData" /> for this audit log entry; <c>null</c> if no data is available. /// An <see cref="IAuditLogData" /> for this audit log entry; <see langword="null" /> if no data is available.
/// </returns> /// </returns>
IAuditLogData Data { get; } IAuditLogData Data { get; }
@@ -39,7 +39,7 @@ namespace Discord
/// Gets the reason behind the change. /// Gets the reason behind the change.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// A string containing the reason for the change; <c>null</c> if none is provided. /// A string containing the reason for the change; <see langword="null" /> if none is provided.
/// </returns> /// </returns>
string Reason { get; } string Reason { get; }
} }

View File

@@ -46,7 +46,7 @@ namespace Discord
/// <param name="options">The options to be used when sending the request.</param> /// <param name="options">The options to be used when sending the request.</param>
/// <returns> /// <returns>
/// A task that represents the asynchronous get operation. The task result contains a user object that /// A task that represents the asynchronous get operation. The task result contains a user object that
/// represents the found user; <c>null</c> if none is found. /// represents the found user; <see langword="null" /> if none is found.
/// </returns> /// </returns>
Task<IUser> GetUserAsync(ulong id, CacheMode mode = CacheMode.AllowDownload, RequestOptions options = null); Task<IUser> GetUserAsync(ulong id, CacheMode mode = CacheMode.AllowDownload, RequestOptions options = null);
} }

View File

@@ -16,7 +16,7 @@ namespace Discord
/// Gets a value that indicates whether the channel is NSFW. /// Gets a value that indicates whether the channel is NSFW.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// <c>true</c> if the channel has the NSFW flag enabled; otherwise <c>false</c>. /// <see langword="true" /> if the channel has the NSFW flag enabled; otherwise <see langword="false" />.
/// </returns> /// </returns>
bool IsNsfw { get; } bool IsNsfw { get; }
@@ -24,7 +24,7 @@ namespace Discord
/// Gets the current topic for this text channel. /// Gets the current topic for this text channel.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// A string representing the topic set in the channel; <c>null</c> if none is set. /// A string representing the topic set in the channel; <see langword="null" /> if none is set.
/// </returns> /// </returns>
string Topic { get; } string Topic { get; }
@@ -103,7 +103,7 @@ namespace Discord
/// <param name="options">The options to be used when sending the request.</param> /// <param name="options">The options to be used when sending the request.</param>
/// <param name="allowedMentions"> /// <param name="allowedMentions">
/// Specifies if notifications are sent for mentioned users and roles in the message <paramref name="text"/>. /// Specifies if notifications are sent for mentioned users and roles in the message <paramref name="text"/>.
/// If <c>null</c>, all mentioned roles and users will be notified. /// If <see langword="null" />, all mentioned roles and users will be notified.
/// </param> /// </param>
/// <param name="components">The message components to be included with this message. Used for interactions.</param> /// <param name="components">The message components to be included with this message. Used for interactions.</param>
/// <param name="stickers">A collection of stickers to send with the message.</param> /// <param name="stickers">A collection of stickers to send with the message.</param>
@@ -130,7 +130,7 @@ namespace Discord
/// <param name="isSpoiler">Whether the message attachment should be hidden as a spoiler.</param> /// <param name="isSpoiler">Whether the message attachment should be hidden as a spoiler.</param>
/// <param name="allowedMentions"> /// <param name="allowedMentions">
/// Specifies if notifications are sent for mentioned users and roles in the message <paramref name="text"/>. /// Specifies if notifications are sent for mentioned users and roles in the message <paramref name="text"/>.
/// If <c>null</c>, all mentioned roles and users will be notified. /// If <see langword="null" />, all mentioned roles and users will be notified.
/// </param> /// </param>
/// <param name="components">The message components to be included with this message. Used for interactions.</param> /// <param name="components">The message components to be included with this message. Used for interactions.</param>
/// <param name="stickers">A collection of stickers to send with the file.</param> /// <param name="stickers">A collection of stickers to send with the file.</param>
@@ -159,7 +159,7 @@ namespace Discord
/// <param name="isSpoiler">Whether the message attachment should be hidden as a spoiler.</param> /// <param name="isSpoiler">Whether the message attachment should be hidden as a spoiler.</param>
/// <param name="allowedMentions"> /// <param name="allowedMentions">
/// Specifies if notifications are sent for mentioned users and roles in the message <paramref name="text"/>. /// Specifies if notifications are sent for mentioned users and roles in the message <paramref name="text"/>.
/// If <c>null</c>, all mentioned roles and users will be notified. /// If <see langword="null" />, all mentioned roles and users will be notified.
/// </param> /// </param>
/// <param name="components">The message components to be included with this message. Used for interactions.</param> /// <param name="components">The message components to be included with this message. Used for interactions.</param>
/// <param name="stickers">A collection of stickers to send with the file.</param> /// <param name="stickers">A collection of stickers to send with the file.</param>
@@ -186,7 +186,7 @@ namespace Discord
/// <param name="options">The options to be used when sending the request.</param> /// <param name="options">The options to be used when sending the request.</param>
/// <param name="allowedMentions"> /// <param name="allowedMentions">
/// Specifies if notifications are sent for mentioned users and roles in the message <paramref name="text"/>. /// Specifies if notifications are sent for mentioned users and roles in the message <paramref name="text"/>.
/// If <c>null</c>, all mentioned roles and users will be notified. /// If <see langword="null" />, all mentioned roles and users will be notified.
/// </param> /// </param>
/// <param name="components">The message components to be included with this message. Used for interactions.</param> /// <param name="components">The message components to be included with this message. Used for interactions.</param>
/// <param name="stickers">A collection of stickers to send with the file.</param> /// <param name="stickers">A collection of stickers to send with the file.</param>
@@ -212,7 +212,7 @@ namespace Discord
/// <param name="options">The options to be used when sending the request.</param> /// <param name="options">The options to be used when sending the request.</param>
/// <param name="allowedMentions"> /// <param name="allowedMentions">
/// Specifies if notifications are sent for mentioned users and roles in the message <paramref name="text"/>. /// Specifies if notifications are sent for mentioned users and roles in the message <paramref name="text"/>.
/// If <c>null</c>, all mentioned roles and users will be notified. /// If <see langword="null" />, all mentioned roles and users will be notified.
/// </param> /// </param>
/// <param name="components">The message components to be included with this message. Used for interactions.</param> /// <param name="components">The message components to be included with this message. Used for interactions.</param>
/// <param name="stickers">A collection of stickers to send with the file.</param> /// <param name="stickers">A collection of stickers to send with the file.</param>

View File

@@ -74,7 +74,7 @@ namespace Discord
/// </summary> /// </summary>
/// <param name="role">The role to get the overwrite from.</param> /// <param name="role">The role to get the overwrite from.</param>
/// <returns> /// <returns>
/// An overwrite object for the targeted role; <c>null</c> if none is set. /// An overwrite object for the targeted role; <see langword="null" /> if none is set.
/// </returns> /// </returns>
OverwritePermissions? GetPermissionOverwrite(IRole role); OverwritePermissions? GetPermissionOverwrite(IRole role);
/// <summary> /// <summary>
@@ -82,7 +82,7 @@ namespace Discord
/// </summary> /// </summary>
/// <param name="user">The user to get the overwrite from.</param> /// <param name="user">The user to get the overwrite from.</param>
/// <returns> /// <returns>
/// An overwrite object for the targeted user; <c>null</c> if none is set. /// An overwrite object for the targeted user; <see langword="null" /> if none is set.
/// </returns> /// </returns>
OverwritePermissions? GetPermissionOverwrite(IUser user); OverwritePermissions? GetPermissionOverwrite(IUser user);
/// <summary> /// <summary>
@@ -163,7 +163,7 @@ namespace Discord
/// <param name="options">The options to be used when sending the request.</param> /// <param name="options">The options to be used when sending the request.</param>
/// <returns> /// <returns>
/// A task representing the asynchronous get operation. The task result contains a guild user object that /// A task representing the asynchronous get operation. The task result contains a guild user object that
/// represents the user; <c>null</c> if none is found. /// represents the user; <see langword="null" /> if none is found.
/// </returns> /// </returns>
new Task<IGuildUser> GetUserAsync(ulong id, CacheMode mode = CacheMode.AllowDownload, RequestOptions options = null); new Task<IGuildUser> GetUserAsync(ulong id, CacheMode mode = CacheMode.AllowDownload, RequestOptions options = null);
} }

View File

@@ -28,7 +28,7 @@ public interface IIntegrationChannel : IGuildChannel
/// <param name="options">The options to be used when sending the request.</param> /// <param name="options">The options to be used when sending the request.</param>
/// <returns> /// <returns>
/// A task that represents the asynchronous get operation. The task result contains a webhook associated /// A task that represents the asynchronous get operation. The task result contains a webhook associated
/// with the identifier; <c>null</c> if the webhook is not found. /// with the identifier; <see langword="null" /> if the webhook is not found.
/// </returns> /// </returns>
Task<IWebhook> GetWebhookAsync(ulong id, RequestOptions options = null); Task<IWebhook> GetWebhookAsync(ulong id, RequestOptions options = null);

View File

@@ -25,7 +25,7 @@ namespace Discord
/// <param name="options">The options to be used when sending the request.</param> /// <param name="options">The options to be used when sending the request.</param>
/// <param name="allowedMentions"> /// <param name="allowedMentions">
/// Specifies if notifications are sent for mentioned users and roles in the message <paramref name="text"/>. /// Specifies if notifications are sent for mentioned users and roles in the message <paramref name="text"/>.
/// If <c>null</c>, all mentioned roles and users will be notified. /// If <see langword="null" />, all mentioned roles and users will be notified.
/// </param> /// </param>
/// <param name="messageReference">The message references to be included. Used to reply to specific messages.</param> /// <param name="messageReference">The message references to be included. Used to reply to specific messages.</param>
/// <param name="components">The message components to be included with this message. Used for interactions.</param> /// <param name="components">The message components to be included with this message. Used for interactions.</param>
@@ -67,7 +67,7 @@ namespace Discord
/// <param name="isSpoiler">Whether the message attachment should be hidden as a spoiler.</param> /// <param name="isSpoiler">Whether the message attachment should be hidden as a spoiler.</param>
/// <param name="allowedMentions"> /// <param name="allowedMentions">
/// Specifies if notifications are sent for mentioned users and roles in the message <paramref name="text"/>. /// Specifies if notifications are sent for mentioned users and roles in the message <paramref name="text"/>.
/// If <c>null</c>, all mentioned roles and users will be notified. /// If <see langword="null" />, all mentioned roles and users will be notified.
/// </param> /// </param>
/// <param name="messageReference">The message references to be included. Used to reply to specific messages.</param> /// <param name="messageReference">The message references to be included. Used to reply to specific messages.</param>
/// <param name="components">The message components to be included with this message. Used for interactions.</param> /// <param name="components">The message components to be included with this message. Used for interactions.</param>
@@ -105,7 +105,7 @@ namespace Discord
/// <param name="isSpoiler">Whether the message attachment should be hidden as a spoiler.</param> /// <param name="isSpoiler">Whether the message attachment should be hidden as a spoiler.</param>
/// <param name="allowedMentions"> /// <param name="allowedMentions">
/// Specifies if notifications are sent for mentioned users and roles in the message <paramref name="text"/>. /// Specifies if notifications are sent for mentioned users and roles in the message <paramref name="text"/>.
/// If <c>null</c>, all mentioned roles and users will be notified. /// If <see langword="null" />, all mentioned roles and users will be notified.
/// </param> /// </param>
/// <param name="messageReference">The message references to be included. Used to reply to specific messages.</param> /// <param name="messageReference">The message references to be included. Used to reply to specific messages.</param>
/// <param name="components">The message components to be included with this message. Used for interactions.</param> /// <param name="components">The message components to be included with this message. Used for interactions.</param>
@@ -135,7 +135,7 @@ namespace Discord
/// <param name="options">The options to be used when sending the request.</param> /// <param name="options">The options to be used when sending the request.</param>
/// <param name="allowedMentions"> /// <param name="allowedMentions">
/// Specifies if notifications are sent for mentioned users and roles in the message <paramref name="text"/>. /// Specifies if notifications are sent for mentioned users and roles in the message <paramref name="text"/>.
/// If <c>null</c>, all mentioned roles and users will be notified. /// If <see langword="null" />, all mentioned roles and users will be notified.
/// </param> /// </param>
/// <param name="messageReference">The message references to be included. Used to reply to specific messages.</param> /// <param name="messageReference">The message references to be included. Used to reply to specific messages.</param>
/// <param name="components">The message components to be included with this message. Used for interactions.</param> /// <param name="components">The message components to be included with this message. Used for interactions.</param>
@@ -165,7 +165,7 @@ namespace Discord
/// <param name="options">The options to be used when sending the request.</param> /// <param name="options">The options to be used when sending the request.</param>
/// <param name="allowedMentions"> /// <param name="allowedMentions">
/// Specifies if notifications are sent for mentioned users and roles in the message <paramref name="text"/>. /// Specifies if notifications are sent for mentioned users and roles in the message <paramref name="text"/>.
/// If <c>null</c>, all mentioned roles and users will be notified. /// If <see langword="null" />, all mentioned roles and users will be notified.
/// </param> /// </param>
/// <param name="messageReference">The message references to be included. Used to reply to specific messages.</param> /// <param name="messageReference">The message references to be included. Used to reply to specific messages.</param>
/// <param name="components">The message components to be included with this message. Used for interactions.</param> /// <param name="components">The message components to be included with this message. Used for interactions.</param>
@@ -186,7 +186,7 @@ namespace Discord
/// <param name="options">The options to be used when sending the request.</param> /// <param name="options">The options to be used when sending the request.</param>
/// <returns> /// <returns>
/// A task that represents an asynchronous get operation for retrieving the message. The task result contains /// A task that represents an asynchronous get operation for retrieving the message. The task result contains
/// the retrieved message; <c>null</c> if no message is found with the specified identifier. /// the retrieved message; <see langword="null" /> if no message is found with the specified identifier.
/// </returns> /// </returns>
Task<IMessage> GetMessageAsync(ulong id, CacheMode mode = CacheMode.AllowDownload, RequestOptions options = null); Task<IMessage> GetMessageAsync(ulong id, CacheMode mode = CacheMode.AllowDownload, RequestOptions options = null);

View File

@@ -13,7 +13,7 @@ namespace Discord
/// </summary> /// </summary>
/// <returns> /// <returns>
/// A <see cref="ulong"/> representing the snowflake identifier of the parent of this channel; /// A <see cref="ulong"/> representing the snowflake identifier of the parent of this channel;
/// <c>null</c> if none is set. /// <see langword="null" /> if none is set.
/// </returns> /// </returns>
ulong? CategoryId { get; } ulong? CategoryId { get; }
/// <summary> /// <summary>
@@ -23,7 +23,7 @@ namespace Discord
/// <param name="options">The options to be used when sending the request.</param> /// <param name="options">The options to be used when sending the request.</param>
/// <returns> /// <returns>
/// A task that represents the asynchronous get operation. The task result contains the category channel /// A task that represents the asynchronous get operation. The task result contains the category channel
/// representing the parent of this channel; <c>null</c> if none is set. /// representing the parent of this channel; <see langword="null" /> if none is set.
/// </returns> /// </returns>
Task<ICategoryChannel> GetCategoryAsync(CacheMode mode = CacheMode.AllowDownload, RequestOptions options = null); Task<ICategoryChannel> GetCategoryAsync(CacheMode mode = CacheMode.AllowDownload, RequestOptions options = null);
@@ -46,10 +46,10 @@ namespace Discord
/// await guildChannel.CreateInviteAsync(maxAge: 43200, maxUses: 3); /// await guildChannel.CreateInviteAsync(maxAge: 43200, maxUses: 3);
/// </code> /// </code>
/// </example> /// </example>
/// <param name="maxAge">The time (in seconds) until the invite expires. Set to <c>null</c> to never expire.</param> /// <param name="maxAge">The time (in seconds) until the invite expires. Set to <see langword="null" /> to never expire.</param>
/// <param name="maxUses">The max amount of times this invite may be used. Set to <c>null</c> to have unlimited uses.</param> /// <param name="maxUses">The max amount of times this invite may be used. Set to <see langword="null" /> to have unlimited uses.</param>
/// <param name="isTemporary">If <c>true</c>, the user accepting this invite will be kicked from the guild after closing their client.</param> /// <param name="isTemporary">If <see langword="true" />, the user accepting this invite will be kicked from the guild after closing their client.</param>
/// <param name="isUnique">If <c>true</c>, don't try to reuse a similar invite (useful for creating many unique one time use invites).</param> /// <param name="isUnique">If <see langword="true" />, don't try to reuse a similar invite (useful for creating many unique one time use invites).</param>
/// <param name="options">The options to be used when sending the request.</param> /// <param name="options">The options to be used when sending the request.</param>
/// <returns> /// <returns>
/// A task that represents the asynchronous invite creation operation. The task result contains an invite /// A task that represents the asynchronous invite creation operation. The task result contains an invite
@@ -61,10 +61,10 @@ namespace Discord
/// Creates a new invite to this channel. /// Creates a new invite to this channel.
/// </summary> /// </summary>
/// <param name="applicationId">The id of the embedded application to open for this invite.</param> /// <param name="applicationId">The id of the embedded application to open for this invite.</param>
/// <param name="maxAge">The time (in seconds) until the invite expires. Set to <c>null</c> to never expire.</param> /// <param name="maxAge">The time (in seconds) until the invite expires. Set to <see langword="null" /> to never expire.</param>
/// <param name="maxUses">The max amount of times this invite may be used. Set to <c>null</c> to have unlimited uses.</param> /// <param name="maxUses">The max amount of times this invite may be used. Set to <see langword="null" /> to have unlimited uses.</param>
/// <param name="isTemporary">If <c>true</c>, the user accepting this invite will be kicked from the guild after closing their client.</param> /// <param name="isTemporary">If <see langword="true" />, the user accepting this invite will be kicked from the guild after closing their client.</param>
/// <param name="isUnique">If <c>true</c>, don't try to reuse a similar invite (useful for creating many unique one time use invites).</param> /// <param name="isUnique">If <see langword="true" />, don't try to reuse a similar invite (useful for creating many unique one time use invites).</param>
/// <param name="options">The options to be used when sending the request.</param> /// <param name="options">The options to be used when sending the request.</param>
/// <returns> /// <returns>
/// A task that represents the asynchronous invite creation operation. The task result contains an invite /// A task that represents the asynchronous invite creation operation. The task result contains an invite
@@ -76,10 +76,10 @@ namespace Discord
/// Creates a new invite to this channel. /// Creates a new invite to this channel.
/// </summary> /// </summary>
/// <param name="application">The application to open for this invite.</param> /// <param name="application">The application to open for this invite.</param>
/// <param name="maxAge">The time (in seconds) until the invite expires. Set to <c>null</c> to never expire.</param> /// <param name="maxAge">The time (in seconds) until the invite expires. Set to <see langword="null" /> to never expire.</param>
/// <param name="maxUses">The max amount of times this invite may be used. Set to <c>null</c> to have unlimited uses.</param> /// <param name="maxUses">The max amount of times this invite may be used. Set to <see langword="null" /> to have unlimited uses.</param>
/// <param name="isTemporary">If <c>true</c>, the user accepting this invite will be kicked from the guild after closing their client.</param> /// <param name="isTemporary">If <see langword="true" />, the user accepting this invite will be kicked from the guild after closing their client.</param>
/// <param name="isUnique">If <c>true</c>, don't try to reuse a similar invite (useful for creating many unique one time use invites).</param> /// <param name="isUnique">If <see langword="true" />, don't try to reuse a similar invite (useful for creating many unique one time use invites).</param>
/// <param name="options">The options to be used when sending the request.</param> /// <param name="options">The options to be used when sending the request.</param>
/// <returns> /// <returns>
/// A task that represents the asynchronous invite creation operation. The task result contains an invite /// A task that represents the asynchronous invite creation operation. The task result contains an invite
@@ -98,10 +98,10 @@ namespace Discord
/// </code> /// </code>
/// </example> /// </example>
/// <param name="user">The id of the user whose stream to display for this invite.</param> /// <param name="user">The id of the user whose stream to display for this invite.</param>
/// <param name="maxAge">The time (in seconds) until the invite expires. Set to <c>null</c> to never expire.</param> /// <param name="maxAge">The time (in seconds) until the invite expires. Set to <see langword="null" /> to never expire.</param>
/// <param name="maxUses">The max amount of times this invite may be used. Set to <c>null</c> to have unlimited uses.</param> /// <param name="maxUses">The max amount of times this invite may be used. Set to <see langword="null" /> to have unlimited uses.</param>
/// <param name="isTemporary">If <c>true</c>, the user accepting this invite will be kicked from the guild after closing their client.</param> /// <param name="isTemporary">If <see langword="true" />, the user accepting this invite will be kicked from the guild after closing their client.</param>
/// <param name="isUnique">If <c>true</c>, don't try to reuse a similar invite (useful for creating many unique one time use invites).</param> /// <param name="isUnique">If <see langword="true" />, don't try to reuse a similar invite (useful for creating many unique one time use invites).</param>
/// <param name="options">The options to be used when sending the request.</param> /// <param name="options">The options to be used when sending the request.</param>
/// <returns> /// <returns>
/// A task that represents the asynchronous invite creation operation. The task result contains an invite /// A task that represents the asynchronous invite creation operation. The task result contains an invite

View File

@@ -14,7 +14,7 @@ namespace Discord
/// Gets a value that indicates whether the channel is NSFW. /// Gets a value that indicates whether the channel is NSFW.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// <c>true</c> if the channel has the NSFW flag enabled; otherwise <c>false</c>. /// <see langword="true" /> if the channel has the NSFW flag enabled; otherwise <see langword="false" />.
/// </returns> /// </returns>
bool IsNsfw { get; } bool IsNsfw { get; }
@@ -22,7 +22,7 @@ namespace Discord
/// Gets the current topic for this text channel. /// Gets the current topic for this text channel.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// A string representing the topic set in the channel; <c>null</c> if none is set. /// A string representing the topic set in the channel; <see langword="null" /> if none is set.
/// </returns> /// </returns>
string Topic { get; } string Topic { get; }

View File

@@ -22,7 +22,7 @@ namespace Discord
/// </summary> /// </summary>
/// <returns> /// <returns>
/// An <see cref="int"/> representing the maximum number of users that are allowed to be connected to this /// An <see cref="int"/> representing the maximum number of users that are allowed to be connected to this
/// channel at once; <c>null</c> if a limit is not set. /// channel at once; <see langword="null" /> if a limit is not set.
/// </returns> /// </returns>
int? UserLimit { get; } int? UserLimit { get; }

View File

@@ -13,7 +13,7 @@ namespace Discord
/// Gets or sets the topic of the channel. /// Gets or sets the topic of the channel.
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// Setting this value to any string other than <c>null</c> or <see cref="string.Empty"/> will set the /// Setting this value to any string other than <see langword="null" /> or <see cref="string.Empty"/> will set the
/// channel topic or description to the desired value. /// channel topic or description to the desired value.
/// </remarks> /// </remarks>
public Optional<string> Topic { get; set; } public Optional<string> Topic { get; set; }
@@ -21,8 +21,8 @@ namespace Discord
/// Gets or sets whether this channel should be flagged as NSFW. /// Gets or sets whether this channel should be flagged as NSFW.
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// Setting this value to <c>true</c> will mark the channel as NSFW (Not Safe For Work) and will prompt the /// Setting this value to <see langword="true" /> will mark the channel as NSFW (Not Safe For Work) and will prompt the
/// user about its possibly mature nature before they may view the channel; setting this value to <c>false</c> will /// user about its possibly mature nature before they may view the channel; setting this value to <see langword="false" /> will
/// remove the NSFW indicator. /// remove the NSFW indicator.
/// </remarks> /// </remarks>
public Optional<bool> IsNsfw { get; set; } public Optional<bool> IsNsfw { get; set; }

View File

@@ -12,7 +12,7 @@ public class VoiceChannelProperties : TextChannelProperties
/// </summary> /// </summary>
public Optional<int> Bitrate { get; set; } public Optional<int> Bitrate { get; set; }
/// <summary> /// <summary>
/// Gets or sets the maximum number of users that can be present in a channel, or <c>null</c> if none. /// Gets or sets the maximum number of users that can be present in a channel, or <see langword="null" /> if none.
/// </summary> /// </summary>
public Optional<int?> UserLimit { get; set; } public Optional<int?> UserLimit { get; set; }
/// <summary> /// <summary>

View File

@@ -35,7 +35,7 @@ namespace Discord
/// </summary> /// </summary>
/// <returns> /// <returns>
/// An <see cref="ulong"/> snowflake identifier representing the user who created this emoji; /// An <see cref="ulong"/> snowflake identifier representing the user who created this emoji;
/// <c>null</c> if unknown. /// <see langword="null" /> if unknown.
/// </returns> /// </returns>
public ulong? CreatorId { get; } public ulong? CreatorId { get; }

View File

@@ -16,7 +16,7 @@ namespace Discord
/// Gets the reason why the user is banned if specified. /// Gets the reason why the user is banned if specified.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// A string containing the reason behind the ban; <c>null</c> if none is specified. /// A string containing the reason behind the ban; <see langword="null" /> if none is specified.
/// </returns> /// </returns>
string Reason { get; } string Reason { get; }
} }

View File

@@ -115,7 +115,7 @@ namespace Discord
/// This boolean is used to determine if the guild is currently connected to the WebSocket and is ready to be used/accessed. /// This boolean is used to determine if the guild is currently connected to the WebSocket and is ready to be used/accessed.
/// </remarks> /// </remarks>
/// <returns> /// <returns>
/// <c>true</c> if this guild is currently connected and ready to be used; otherwise <see langword="false"/>. /// <see langword="true" /> if this guild is currently connected and ready to be used; otherwise <see langword="false"/>.
/// </returns> /// </returns>
bool Available { get; } bool Available { get; }
@@ -966,7 +966,7 @@ namespace Discord
/// This method removes all users that have not logged on in the provided number of <paramref name="days"/>. /// This method removes all users that have not logged on in the provided number of <paramref name="days"/>.
/// </para> /// </para>
/// <para> /// <para>
/// If <paramref name="simulate" /> is <c>true</c>, this method will only return the number of users that /// If <paramref name="simulate" /> is <see langword="true" />, this method will only return the number of users that
/// would be removed without kicking the users. /// would be removed without kicking the users.
/// </para> /// </para>
/// </remarks> /// </remarks>

View File

@@ -7,11 +7,11 @@ namespace Discord
/// </summary> /// </summary>
string Name { get; } string Name { get; }
/// <summary> /// <summary>
/// Gets the icon URL associated with this guild, or <c>null</c> if one is not set. /// Gets the icon URL associated with this guild, or <see langword="null" /> if one is not set.
/// </summary> /// </summary>
string IconUrl { get; } string IconUrl { get; }
/// <summary> /// <summary>
/// Returns <c>true</c> if the current user owns this guild. /// Returns <see langword="true" /> if the current user owns this guild.
/// </summary> /// </summary>
bool IsOwner { get; } bool IsOwner { get; }
/// <summary> /// <summary>

View File

@@ -23,28 +23,28 @@ namespace Discord
/// Gets a value that indicates whether or not this voice region is exclusive to partnered servers. /// Gets a value that indicates whether or not this voice region is exclusive to partnered servers.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// <c>true</c> if this voice region is exclusive to VIP accounts; otherwise <c>false</c>. /// <see langword="true" /> if this voice region is exclusive to VIP accounts; otherwise <see langword="false" />.
/// </returns> /// </returns>
bool IsVip { get; } bool IsVip { get; }
/// <summary> /// <summary>
/// Gets a value that indicates whether this voice region is optimal for your client in terms of latency. /// Gets a value that indicates whether this voice region is optimal for your client in terms of latency.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// <c>true</c> if this voice region is the closest to your machine; otherwise <c>false</c> . /// <see langword="true" /> if this voice region is the closest to your machine; otherwise <see langword="false" /> .
/// </returns> /// </returns>
bool IsOptimal { get; } bool IsOptimal { get; }
/// <summary> /// <summary>
/// Gets a value that indicates whether this voice region is no longer being maintained. /// Gets a value that indicates whether this voice region is no longer being maintained.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// <c>true</c> if this is a deprecated voice region; otherwise <c>false</c>. /// <see langword="true" /> if this is a deprecated voice region; otherwise <see langword="false" />.
/// </returns> /// </returns>
bool IsDeprecated { get; } bool IsDeprecated { get; }
/// <summary> /// <summary>
/// Gets a value that indicates whether this voice region is custom-made for events. /// Gets a value that indicates whether this voice region is custom-made for events.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// <c>true</c> if this is a custom voice region (used for events/etc); otherwise <c>false</c>/ /// <see langword="true" /> if this is a custom voice region (used for events/etc); otherwise <see langword="false" />/
/// </returns> /// </returns>
bool IsCustom { get; } bool IsCustom { get; }
} }

View File

@@ -41,7 +41,7 @@ namespace Discord
/// <paramref name="path" /> is a zero-length string, contains only white space, or contains one or more invalid /// <paramref name="path" /> is a zero-length string, contains only white space, or contains one or more invalid
/// characters as defined by <see cref="Path.GetInvalidPathChars"/>. /// characters as defined by <see cref="Path.GetInvalidPathChars"/>.
/// </exception> /// </exception>
/// <exception cref="System.ArgumentNullException"><paramref name="path" /> is <c>null</c>.</exception> /// <exception cref="System.ArgumentNullException"><paramref name="path" /> is <see langword="null" />.</exception>
/// <exception cref="PathTooLongException"> /// <exception cref="PathTooLongException">
/// The specified path, file name, or both exceed the system-defined maximum length. For example, on /// The specified path, file name, or both exceed the system-defined maximum length. For example, on
/// Windows-based platforms, paths must be less than 248 characters, and file names must be less than 260 /// Windows-based platforms, paths must be less than 248 characters, and file names must be less than 260

View File

@@ -33,7 +33,7 @@ namespace Discord
/// Gets a value that indicates whether this integration is enabled or not. /// Gets a value that indicates whether this integration is enabled or not.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// <c>true</c> if this integration is enabled; otherwise <c>false</c>. /// <see langword="true" /> if this integration is enabled; otherwise <see langword="false" />.
/// </returns> /// </returns>
bool IsEnabled { get; } bool IsEnabled { get; }
/// <summary> /// <summary>
@@ -44,7 +44,7 @@ namespace Discord
/// disabled will not. A user must manually choose when sync the integration if syncing is disabled. /// disabled will not. A user must manually choose when sync the integration if syncing is disabled.
/// </remarks> /// </remarks>
/// <returns> /// <returns>
/// <c>true</c> if this integration is syncing; otherwise <c>false</c>. /// <see langword="true" /> if this integration is syncing; otherwise <see langword="false" />.
/// </returns> /// </returns>
bool? IsSyncing { get; } bool? IsSyncing { get; }
/// <summary> /// <summary>

View File

@@ -11,15 +11,15 @@ namespace Discord
/// Gets a value that indicates whether the invite is a temporary one. /// Gets a value that indicates whether the invite is a temporary one.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// <c>true</c> if users accepting this invite will be removed from the guild when they log off; otherwise /// <see langword="true" /> if users accepting this invite will be removed from the guild when they log off; otherwise
/// <c>false</c>. /// <see langword="false" />.
/// </returns> /// </returns>
bool IsTemporary { get; } bool IsTemporary { get; }
/// <summary> /// <summary>
/// Gets the time (in seconds) until the invite expires. /// Gets the time (in seconds) until the invite expires.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// An <see cref="int"/> representing the time in seconds until this invite expires; <c>null</c> if this /// An <see cref="int"/> representing the time in seconds until this invite expires; <see langword="null" /> if this
/// invite never expires. /// invite never expires.
/// </returns> /// </returns>
int? MaxAge { get; } int? MaxAge { get; }
@@ -28,7 +28,7 @@ namespace Discord
/// </summary> /// </summary>
/// <returns> /// <returns>
/// An <see cref="int"/> representing the number of uses this invite may be accepted until it is removed /// An <see cref="int"/> representing the number of uses this invite may be accepted until it is removed
/// from the guild; <c>null</c> if none is set. /// from the guild; <see langword="null" /> if none is set.
/// </returns> /// </returns>
int? MaxUses { get; } int? MaxUses { get; }
/// <summary> /// <summary>

View File

@@ -29,7 +29,7 @@ namespace Discord
/// The <see cref="AllowedMentionTypes.Users"/> flag is mutually exclusive with the <see cref="UserIds"/> /// The <see cref="AllowedMentionTypes.Users"/> flag is mutually exclusive with the <see cref="UserIds"/>
/// property, and the <see cref="AllowedMentionTypes.Roles"/> flag is mutually exclusive with the /// property, and the <see cref="AllowedMentionTypes.Roles"/> flag is mutually exclusive with the
/// <see cref="RoleIds"/> property. /// <see cref="RoleIds"/> property.
/// If <c>null</c>, only the ids specified in <see cref="UserIds"/> and <see cref="RoleIds"/> will be mentioned. /// If <see langword="null" />, only the ids specified in <see cref="UserIds"/> and <see cref="RoleIds"/> will be mentioned.
/// </remarks> /// </remarks>
public AllowedMentionTypes? AllowedTypes { get; set; } public AllowedMentionTypes? AllowedTypes { get; set; }
@@ -37,7 +37,7 @@ namespace Discord
/// Gets or sets the list of all role ids that will be mentioned. /// Gets or sets the list of all role ids that will be mentioned.
/// This property is mutually exclusive with the <see cref="AllowedMentionTypes.Roles"/> /// This property is mutually exclusive with the <see cref="AllowedMentionTypes.Roles"/>
/// flag of the <see cref="AllowedTypes"/> property. If the flag is set, the value of this property /// flag of the <see cref="AllowedTypes"/> property. If the flag is set, the value of this property
/// must be <c>null</c> or empty. /// must be <see langword="null" /> or empty.
/// </summary> /// </summary>
public List<ulong> RoleIds { get; set; } = new List<ulong>(); public List<ulong> RoleIds { get; set; } = new List<ulong>();
@@ -45,7 +45,7 @@ namespace Discord
/// Gets or sets the list of all user ids that will be mentioned. /// Gets or sets the list of all user ids that will be mentioned.
/// This property is mutually exclusive with the <see cref="AllowedMentionTypes.Users"/> /// This property is mutually exclusive with the <see cref="AllowedMentionTypes.Users"/>
/// flag of the <see cref="AllowedTypes"/> property. If the flag is set, the value of this property /// flag of the <see cref="AllowedTypes"/> property. If the flag is set, the value of this property
/// must be <c>null</c> or empty. /// must be <see langword="null" /> or empty.
/// </summary> /// </summary>
public List<ulong> UserIds { get; set; } = new List<ulong>(); public List<ulong> UserIds { get; set; } = new List<ulong>();
@@ -62,7 +62,7 @@ namespace Discord
/// </summary> /// </summary>
/// <param name="allowedTypes"> /// <param name="allowedTypes">
/// The types of mentions to parse from the message content. /// The types of mentions to parse from the message content.
/// If <c>null</c>, only the ids specified in <see cref="UserIds"/> and <see cref="RoleIds"/> will be mentioned. /// If <see langword="null" />, only the ids specified in <see cref="UserIds"/> and <see cref="RoleIds"/> will be mentioned.
/// </param> /// </param>
public AllowedMentions(AllowedMentionTypes? allowedTypes = null) public AllowedMentions(AllowedMentionTypes? allowedTypes = null)
{ {

View File

@@ -93,7 +93,7 @@ namespace Discord
/// <summary> Gets or sets the list of <see cref="EmbedFieldBuilder"/> of an <see cref="Embed"/>. </summary> /// <summary> Gets or sets the list of <see cref="EmbedFieldBuilder"/> of an <see cref="Embed"/>. </summary>
/// <exception cref="ArgumentNullException" accessor="set">An embed builder's fields collection is set to /// <exception cref="ArgumentNullException" accessor="set">An embed builder's fields collection is set to
/// <c>null</c>.</exception> /// <see langword="null" />.</exception>
/// <exception cref="ArgumentException" accessor="set">Fields count exceeds <see cref="MaxFieldCount"/>. /// <exception cref="ArgumentException" accessor="set">Fields count exceeds <see cref="MaxFieldCount"/>.
/// </exception> /// </exception>
/// <returns> The list of existing <see cref="EmbedFieldBuilder"/>.</returns> /// <returns> The list of existing <see cref="EmbedFieldBuilder"/>.</returns>
@@ -114,28 +114,28 @@ namespace Discord
/// Gets or sets the timestamp of an <see cref="Embed"/>. /// Gets or sets the timestamp of an <see cref="Embed"/>.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// The timestamp of the embed, or <c>null</c> if none is set. /// The timestamp of the embed, or <see langword="null" /> if none is set.
/// </returns> /// </returns>
public DateTimeOffset? Timestamp { get; set; } public DateTimeOffset? Timestamp { get; set; }
/// <summary> /// <summary>
/// Gets or sets the sidebar color of an <see cref="Embed"/>. /// Gets or sets the sidebar color of an <see cref="Embed"/>.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// The color of the embed, or <c>null</c> if none is set. /// The color of the embed, or <see langword="null" /> if none is set.
/// </returns> /// </returns>
public Color? Color { get; set; } public Color? Color { get; set; }
/// <summary> /// <summary>
/// Gets or sets the <see cref="EmbedAuthorBuilder" /> of an <see cref="Embed"/>. /// Gets or sets the <see cref="EmbedAuthorBuilder" /> of an <see cref="Embed"/>.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// The author field builder of the embed, or <c>null</c> if none is set. /// The author field builder of the embed, or <see langword="null" /> if none is set.
/// </returns> /// </returns>
public EmbedAuthorBuilder Author { get; set; } public EmbedAuthorBuilder Author { get; set; }
/// <summary> /// <summary>
/// Gets or sets the <see cref="EmbedFooterBuilder" /> of an <see cref="Embed"/>. /// Gets or sets the <see cref="EmbedFooterBuilder" /> of an <see cref="Embed"/>.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// The footer field builder of the embed, or <c>null</c> if none is set. /// The footer field builder of the embed, or <see langword="null" /> if none is set.
/// </returns> /// </returns>
public EmbedFooterBuilder Footer { get; set; } public EmbedFooterBuilder Footer { get; set; }
@@ -556,7 +556,7 @@ namespace Discord
/// Gets or sets the field name. /// Gets or sets the field name.
/// </summary> /// </summary>
/// <exception cref="ArgumentException"> /// <exception cref="ArgumentException">
/// <para>Field name is <c>null</c>, empty or entirely whitespace.</para> /// <para>Field name is <see langword="null" />, empty or entirely whitespace.</para>
/// <para><c>- or -</c></para> /// <para><c>- or -</c></para>
/// <para>Field name length exceeds <see cref="MaxFieldNameLength"/>.</para> /// <para>Field name length exceeds <see cref="MaxFieldNameLength"/>.</para>
/// </exception> /// </exception>
@@ -580,7 +580,7 @@ namespace Discord
/// Gets or sets the field value. /// Gets or sets the field value.
/// </summary> /// </summary>
/// <exception cref="ArgumentException" accessor="set"> /// <exception cref="ArgumentException" accessor="set">
/// <para>Field value is <c>null</c>, empty or entirely whitespace.</para> /// <para>Field value is <see langword="null" />, empty or entirely whitespace.</para>
/// <para><c>- or -</c></para> /// <para><c>- or -</c></para>
/// <para>Field value length exceeds <see cref="MaxFieldValueLength"/>.</para> /// <para>Field value length exceeds <see cref="MaxFieldValueLength"/>.</para>
/// </exception> /// </exception>
@@ -648,7 +648,7 @@ namespace Discord
/// The current builder. /// The current builder.
/// </returns> /// </returns>
/// <exception cref="ArgumentException"> /// <exception cref="ArgumentException">
/// <para><see cref="Name"/> or <see cref="Value"/> is <c>null</c>, empty or entirely whitespace.</para> /// <para><see cref="Name"/> or <see cref="Value"/> is <see langword="null" />, empty or entirely whitespace.</para>
/// <para><c>- or -</c></para> /// <para><c>- or -</c></para>
/// <para><see cref="Name"/> or <see cref="Value"/> exceeds the maximum length allowed by Discord.</para> /// <para><see cref="Name"/> or <see cref="Value"/> exceeds the maximum length allowed by Discord.</para>
/// </exception> /// </exception>

View File

@@ -26,7 +26,7 @@ namespace Discord
/// </summary> /// </summary>
/// <returns> /// <returns>
/// A <see cref="int"/> representing the height of this image if it can be retrieved; otherwise /// A <see cref="int"/> representing the height of this image if it can be retrieved; otherwise
/// <c>null</c>. /// <see langword="null" />.
/// </returns> /// </returns>
public int? Height { get; } public int? Height { get; }
/// <summary> /// <summary>
@@ -34,7 +34,7 @@ namespace Discord
/// </summary> /// </summary>
/// <returns> /// <returns>
/// A <see cref="int"/> representing the width of this image if it can be retrieved; otherwise /// A <see cref="int"/> representing the width of this image if it can be retrieved; otherwise
/// <c>null</c>. /// <see langword="null" />.
/// </returns> /// </returns>
public int? Width { get; } public int? Width { get; }

View File

@@ -26,7 +26,7 @@ namespace Discord
/// </summary> /// </summary>
/// <returns> /// <returns>
/// A <see cref="int"/> representing the height of this thumbnail if it can be retrieved; otherwise /// A <see cref="int"/> representing the height of this thumbnail if it can be retrieved; otherwise
/// <c>null</c>. /// <see langword="null" />.
/// </returns> /// </returns>
public int? Height { get; } public int? Height { get; }
/// <summary> /// <summary>
@@ -34,7 +34,7 @@ namespace Discord
/// </summary> /// </summary>
/// <returns> /// <returns>
/// A <see cref="int"/> representing the width of this thumbnail if it can be retrieved; otherwise /// A <see cref="int"/> representing the width of this thumbnail if it can be retrieved; otherwise
/// <c>null</c>. /// <see langword="null" />.
/// </returns> /// </returns>
public int? Width { get; } public int? Width { get; }

View File

@@ -21,7 +21,7 @@ namespace Discord
/// </summary> /// </summary>
/// <returns> /// <returns>
/// A <see cref="int"/> representing the height of this video if it can be retrieved; otherwise /// A <see cref="int"/> representing the height of this video if it can be retrieved; otherwise
/// <c>null</c>. /// <see langword="null" />.
/// </returns> /// </returns>
public int? Height { get; } public int? Height { get; }
/// <summary> /// <summary>
@@ -29,7 +29,7 @@ namespace Discord
/// </summary> /// </summary>
/// <returns> /// <returns>
/// A <see cref="int"/> representing the width of this video if it can be retrieved; otherwise /// A <see cref="int"/> representing the width of this video if it can be retrieved; otherwise
/// <c>null</c>. /// <see langword="null" />.
/// </returns> /// </returns>
public int? Width { get; } public int? Width { get; }

View File

@@ -71,7 +71,7 @@ namespace Discord
/// <paramref name="path" /> is a zero-length string, contains only white space, or contains one or more invalid /// <paramref name="path" /> is a zero-length string, contains only white space, or contains one or more invalid
/// characters as defined by <see cref="Path.GetInvalidPathChars"/>. /// characters as defined by <see cref="Path.GetInvalidPathChars"/>.
/// </exception> /// </exception>
/// <exception cref="System.ArgumentNullException"><paramref name="path" /> is <c>null</c>.</exception> /// <exception cref="System.ArgumentNullException"><paramref name="path" /> is <see langword="null" />.</exception>
/// <exception cref="PathTooLongException"> /// <exception cref="PathTooLongException">
/// The specified path, file name, or both exceed the system-defined maximum length. For example, on /// The specified path, file name, or both exceed the system-defined maximum length. For example, on
/// Windows-based platforms, paths must be less than 248 characters, and file names must be less than 260 /// Windows-based platforms, paths must be less than 248 characters, and file names must be less than 260

View File

@@ -45,14 +45,14 @@ namespace Discord
/// Gets the height of this attachment. /// Gets the height of this attachment.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// The height of this attachment if it is a picture; otherwise <c>null</c>. /// The height of this attachment if it is a picture; otherwise <see langword="null" />.
/// </returns> /// </returns>
int? Height { get; } int? Height { get; }
/// <summary> /// <summary>
/// Gets the width of this attachment. /// Gets the width of this attachment.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// The width of this attachment if it is a picture; otherwise <c>null</c>. /// The width of this attachment if it is a picture; otherwise <see langword="null" />.
/// </returns> /// </returns>
int? Width { get; } int? Width { get; }
/// <summary> /// <summary>

View File

@@ -41,56 +41,56 @@ namespace Discord
/// </summary> /// </summary>
/// <returns> /// <returns>
/// A <see cref="DateTimeOffset"/> based on the timestamp present at the bottom left of the embed, or /// A <see cref="DateTimeOffset"/> based on the timestamp present at the bottom left of the embed, or
/// <c>null</c> if none is set. /// <see langword="null" /> if none is set.
/// </returns> /// </returns>
DateTimeOffset? Timestamp { get; } DateTimeOffset? Timestamp { get; }
/// <summary> /// <summary>
/// Gets the color of this embed. /// Gets the color of this embed.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// The color of the embed present on the side of the embed, or <c>null</c> if none is set. /// The color of the embed present on the side of the embed, or <see langword="null" /> if none is set.
/// </returns> /// </returns>
Color? Color { get; } Color? Color { get; }
/// <summary> /// <summary>
/// Gets the image of this embed. /// Gets the image of this embed.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// The image of the embed, or <c>null</c> if none is set. /// The image of the embed, or <see langword="null" /> if none is set.
/// </returns> /// </returns>
EmbedImage? Image { get; } EmbedImage? Image { get; }
/// <summary> /// <summary>
/// Gets the video of this embed. /// Gets the video of this embed.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// The video of the embed, or <c>null</c> if none is set. /// The video of the embed, or <see langword="null" /> if none is set.
/// </returns> /// </returns>
EmbedVideo? Video { get; } EmbedVideo? Video { get; }
/// <summary> /// <summary>
/// Gets the author field of this embed. /// Gets the author field of this embed.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// The author field of the embed, or <c>null</c> if none is set. /// The author field of the embed, or <see langword="null" /> if none is set.
/// </returns> /// </returns>
EmbedAuthor? Author { get; } EmbedAuthor? Author { get; }
/// <summary> /// <summary>
/// Gets the footer field of this embed. /// Gets the footer field of this embed.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// The author field of the embed, or <c>null</c> if none is set. /// The author field of the embed, or <see langword="null" /> if none is set.
/// </returns> /// </returns>
EmbedFooter? Footer { get; } EmbedFooter? Footer { get; }
/// <summary> /// <summary>
/// Gets the provider of this embed. /// Gets the provider of this embed.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// The source of the embed, or <c>null</c> if none is set. /// The source of the embed, or <see langword="null" /> if none is set.
/// </returns> /// </returns>
EmbedProvider? Provider { get; } EmbedProvider? Provider { get; }
/// <summary> /// <summary>
/// Gets the thumbnail featured in this embed. /// Gets the thumbnail featured in this embed.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// The thumbnail featured in the embed, or <c>null</c> if none is set. /// The thumbnail featured in the embed, or <see langword="null" /> if none is set.
/// </returns> /// </returns>
EmbedThumbnail? Thumbnail { get; } EmbedThumbnail? Thumbnail { get; }
/// <summary> /// <summary>

View File

@@ -21,28 +21,28 @@ namespace Discord
/// Gets the value that indicates whether this message was meant to be read-aloud by Discord. /// Gets the value that indicates whether this message was meant to be read-aloud by Discord.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// <c>true</c> if this message was sent as a text-to-speech message; otherwise <c>false</c>. /// <see langword="true" /> if this message was sent as a text-to-speech message; otherwise <see langword="false" />.
/// </returns> /// </returns>
bool IsTTS { get; } bool IsTTS { get; }
/// <summary> /// <summary>
/// Gets the value that indicates whether this message is pinned. /// Gets the value that indicates whether this message is pinned.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// <c>true</c> if this message was added to its channel's pinned messages; otherwise <c>false</c>. /// <see langword="true" /> if this message was added to its channel's pinned messages; otherwise <see langword="false" />.
/// </returns> /// </returns>
bool IsPinned { get; } bool IsPinned { get; }
/// <summary> /// <summary>
/// Gets the value that indicates whether or not this message's embeds are suppressed. /// Gets the value that indicates whether or not this message's embeds are suppressed.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// <c>true</c> if the embeds in this message have been suppressed (made invisible); otherwise <c>false</c>. /// <see langword="true" /> if the embeds in this message have been suppressed (made invisible); otherwise <see langword="false" />.
/// </returns> /// </returns>
bool IsSuppressed { get; } bool IsSuppressed { get; }
/// <summary> /// <summary>
/// Gets the value that indicates whether this message mentioned everyone. /// Gets the value that indicates whether this message mentioned everyone.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// <c>true</c> if this message mentioned everyone; otherwise <c>false</c>. /// <see langword="true" /> if this message mentioned everyone; otherwise <see langword="false" />.
/// </returns> /// </returns>
bool MentionedEveryone { get; } bool MentionedEveryone { get; }
/// <summary> /// <summary>
@@ -76,7 +76,7 @@ namespace Discord
/// Gets the time of this message's last edit. /// Gets the time of this message's last edit.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// Time of when the message was last edited; <c>null</c> if the message is never edited. /// Time of when the message was last edited; <see langword="null" /> if the message is never edited.
/// </returns> /// </returns>
DateTimeOffset? EditedTimestamp { get; } DateTimeOffset? EditedTimestamp { get; }

View File

@@ -17,7 +17,7 @@ namespace Discord
/// Gets a value that indicates whether the current user has reacted to this. /// Gets a value that indicates whether the current user has reacted to this.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// <c>true</c> if the user has reacted to the message; otherwise <c>false</c>. /// <see langword="true" /> if the user has reacted to the message; otherwise <see langword="false" />.
/// </returns> /// </returns>
public bool IsMe { get; internal set; } public bool IsMe { get; internal set; }
} }

View File

@@ -364,7 +364,7 @@ namespace Discord
/// in these permissions. /// in these permissions.
/// </summary> /// </summary>
/// <param name="permission">The permission value to check for.</param> /// <param name="permission">The permission value to check for.</param>
/// <returns><see langword="true"/> if the permission is enabled, <c>false</c> otherwise.</returns> /// <returns><see langword="true"/> if the permission is enabled, <see langword="false" /> otherwise.</returns>
public bool Has(GuildPermission permission) => Permissions.GetValue(RawValue, permission); public bool Has(GuildPermission permission) => Permissions.GetValue(RawValue, permission);
/// <summary> /// <summary>

View File

@@ -83,21 +83,21 @@ namespace Discord
public PermValue ManageRoles => Permissions.GetValue(AllowValue, DenyValue, ChannelPermission.ManageRoles); public PermValue ManageRoles => Permissions.GetValue(AllowValue, DenyValue, ChannelPermission.ManageRoles);
/// <summary> If True, a user may edit the webhooks for this channel. </summary> /// <summary> If True, a user may edit the webhooks for this channel. </summary>
public PermValue ManageWebhooks => Permissions.GetValue(AllowValue, DenyValue, ChannelPermission.ManageWebhooks); public PermValue ManageWebhooks => Permissions.GetValue(AllowValue, DenyValue, ChannelPermission.ManageWebhooks);
/// <summary> If <c>true</c>, a user may use slash commands in this guild. </summary> /// <summary> If <see langword="true" />, a user may use slash commands in this guild. </summary>
public PermValue UseApplicationCommands => Permissions.GetValue(AllowValue, DenyValue, ChannelPermission.UseApplicationCommands); public PermValue UseApplicationCommands => Permissions.GetValue(AllowValue, DenyValue, ChannelPermission.UseApplicationCommands);
/// <summary> If <c>true</c>, a user may request to speak in stage channels. </summary> /// <summary> If <see langword="true" />, a user may request to speak in stage channels. </summary>
public PermValue RequestToSpeak => Permissions.GetValue(AllowValue, DenyValue, ChannelPermission.RequestToSpeak); public PermValue RequestToSpeak => Permissions.GetValue(AllowValue, DenyValue, ChannelPermission.RequestToSpeak);
/// <summary> If <c>true</c>, a user may manage threads in this guild. </summary> /// <summary> If <see langword="true" />, a user may manage threads in this guild. </summary>
public PermValue ManageThreads => Permissions.GetValue(AllowValue, DenyValue, ChannelPermission.ManageThreads); public PermValue ManageThreads => Permissions.GetValue(AllowValue, DenyValue, ChannelPermission.ManageThreads);
/// <summary> If <c>true</c>, a user may create public threads in this guild. </summary> /// <summary> If <see langword="true" />, a user may create public threads in this guild. </summary>
public PermValue CreatePublicThreads => Permissions.GetValue(AllowValue, DenyValue, ChannelPermission.CreatePublicThreads); public PermValue CreatePublicThreads => Permissions.GetValue(AllowValue, DenyValue, ChannelPermission.CreatePublicThreads);
/// <summary> If <c>true</c>, a user may create private threads in this guild. </summary> /// <summary> If <see langword="true" />, a user may create private threads in this guild. </summary>
public PermValue CreatePrivateThreads => Permissions.GetValue(AllowValue, DenyValue, ChannelPermission.CreatePrivateThreads); public PermValue CreatePrivateThreads => Permissions.GetValue(AllowValue, DenyValue, ChannelPermission.CreatePrivateThreads);
/// <summary> If <c>true</c>, a user may use external stickers in this guild. </summary> /// <summary> If <see langword="true" />, a user may use external stickers in this guild. </summary>
public PermValue UseExternalStickers => Permissions.GetValue(AllowValue, DenyValue, ChannelPermission.UseExternalStickers); public PermValue UseExternalStickers => Permissions.GetValue(AllowValue, DenyValue, ChannelPermission.UseExternalStickers);
/// <summary> If <c>true</c>, a user may send messages in threads in this guild. </summary> /// <summary> If <see langword="true" />, a user may send messages in threads in this guild. </summary>
public PermValue SendMessagesInThreads => Permissions.GetValue(AllowValue, DenyValue, ChannelPermission.SendMessagesInThreads); public PermValue SendMessagesInThreads => Permissions.GetValue(AllowValue, DenyValue, ChannelPermission.SendMessagesInThreads);
/// <summary> If <c>true</c>, a user launch application activities in voice channels in this guild. </summary> /// <summary> If <see langword="true" />, a user launch application activities in voice channels in this guild. </summary>
public PermValue StartEmbeddedActivities => Permissions.GetValue(AllowValue, DenyValue, ChannelPermission.StartEmbeddedActivities); public PermValue StartEmbeddedActivities => Permissions.GetValue(AllowValue, DenyValue, ChannelPermission.StartEmbeddedActivities);
/// <summary> Creates a new OverwritePermissions with the provided allow and deny packed values. </summary> /// <summary> Creates a new OverwritePermissions with the provided allow and deny packed values. </summary>

View File

@@ -27,21 +27,21 @@ namespace Discord
/// Gets a value that indicates whether the role can be separated in the user list. /// Gets a value that indicates whether the role can be separated in the user list.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// <c>true</c> if users of this role are separated in the user list; otherwise <c>false</c>. /// <see langword="true" /> if users of this role are separated in the user list; otherwise <see langword="false" />.
/// </returns> /// </returns>
bool IsHoisted { get; } bool IsHoisted { get; }
/// <summary> /// <summary>
/// Gets a value that indicates whether the role is managed by Discord. /// Gets a value that indicates whether the role is managed by Discord.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// <c>true</c> if this role is automatically managed by Discord; otherwise <c>false</c>. /// <see langword="true" /> if this role is automatically managed by Discord; otherwise <see langword="false" />.
/// </returns> /// </returns>
bool IsManaged { get; } bool IsManaged { get; }
/// <summary> /// <summary>
/// Gets a value that indicates whether the role is mentionable. /// Gets a value that indicates whether the role is mentionable.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// <c>true</c> if this role may be mentioned in messages; otherwise <c>false</c>. /// <see langword="true" /> if this role may be mentioned in messages; otherwise <see langword="false" />.
/// </returns> /// </returns>
bool IsMentionable { get; } bool IsMentionable { get; }
/// <summary> /// <summary>

View File

@@ -12,7 +12,7 @@ namespace Discord
/// Gets or sets the user's nickname. /// Gets or sets the user's nickname.
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// To clear the user's nickname, this value can be set to <c>null</c> or /// To clear the user's nickname, this value can be set to <see langword="null" /> or
/// <see cref="string.Empty"/>. /// <see cref="string.Empty"/>.
/// </remarks> /// </remarks>
public Optional<string> Nickname { get; set; } public Optional<string> Nickname { get; set; }
@@ -20,14 +20,14 @@ namespace Discord
/// Gets or sets whether the user should be muted in a voice channel. /// Gets or sets whether the user should be muted in a voice channel.
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// If this value is set to <c>true</c>, no user will be able to hear this user speak in the guild. /// If this value is set to <see langword="true" />, no user will be able to hear this user speak in the guild.
/// </remarks> /// </remarks>
public Optional<bool> Mute { get; set; } public Optional<bool> Mute { get; set; }
/// <summary> /// <summary>
/// Gets or sets whether the user should be deafened in a voice channel. /// Gets or sets whether the user should be deafened in a voice channel.
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// If this value is set to <c>true</c>, this user will not be able to hear anyone speak in the guild. /// If this value is set to <see langword="true" />, this user will not be able to hear anyone speak in the guild.
/// </remarks> /// </remarks>
public Optional<bool> Deaf { get; set; } public Optional<bool> Deaf { get; set; }
/// <summary> /// <summary>

View File

@@ -13,21 +13,21 @@ namespace Discord
/// Gets or sets whether the user should be muted in a voice channel. /// Gets or sets whether the user should be muted in a voice channel.
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// If this value is set to <c>true</c>, no user will be able to hear this user speak in the guild. /// If this value is set to <see langword="true" />, no user will be able to hear this user speak in the guild.
/// </remarks> /// </remarks>
public Optional<bool> Mute { get; set; } public Optional<bool> Mute { get; set; }
/// <summary> /// <summary>
/// Gets or sets whether the user should be deafened in a voice channel. /// Gets or sets whether the user should be deafened in a voice channel.
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// If this value is set to <c>true</c>, this user will not be able to hear anyone speak in the guild. /// If this value is set to <see langword="true" />, this user will not be able to hear anyone speak in the guild.
/// </remarks> /// </remarks>
public Optional<bool> Deaf { get; set; } public Optional<bool> Deaf { get; set; }
/// <summary> /// <summary>
/// Gets or sets the user's nickname. /// Gets or sets the user's nickname.
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// To clear the user's nickname, this value can be set to <c>null</c> or /// To clear the user's nickname, this value can be set to <see langword="null" /> or
/// <see cref="string.Empty"/>. /// <see cref="string.Empty"/>.
/// </remarks> /// </remarks>
public Optional<string> Nickname { get; set; } public Optional<string> Nickname { get; set; }
@@ -60,7 +60,7 @@ namespace Discord
/// </remarks> /// </remarks>
public Optional<IEnumerable<ulong>> RoleIds { get; set; } public Optional<IEnumerable<ulong>> RoleIds { get; set; }
/// <summary> /// <summary>
/// Moves a user to a voice channel. If <c>null</c>, this user will be disconnected from their current voice channel. /// Moves a user to a voice channel. If <see langword="null" />, this user will be disconnected from their current voice channel.
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// This user MUST already be in a <see cref="IVoiceChannel"/> for this to work. /// This user MUST already be in a <see cref="IVoiceChannel"/> for this to work.
@@ -68,7 +68,7 @@ namespace Discord
/// </remarks> /// </remarks>
public Optional<IVoiceChannel> Channel { get; set; } public Optional<IVoiceChannel> Channel { get; set; }
/// <summary> /// <summary>
/// Moves a user to a voice channel. Set <see cref="Channel"/> to <c>null</c> to disconnect this user from their current voice channel. /// Moves a user to a voice channel. Set <see cref="Channel"/> to <see langword="null" /> to disconnect this user from their current voice channel.
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// This user MUST already be in a <see cref="IVoiceChannel"/> for this to work. /// This user MUST already be in a <see cref="IVoiceChannel"/> for this to work.

View File

@@ -14,7 +14,7 @@ namespace Discord
/// </summary> /// </summary>
/// <returns> /// <returns>
/// A <see cref="DateTimeOffset"/> representing the time of which the user has joined the guild; /// A <see cref="DateTimeOffset"/> representing the time of which the user has joined the guild;
/// <c>null</c> when it cannot be obtained. /// <see langword="null" /> when it cannot be obtained.
/// </returns> /// </returns>
DateTimeOffset? JoinedAt { get; } DateTimeOffset? JoinedAt { get; }
/// <summary> /// <summary>
@@ -28,7 +28,7 @@ namespace Discord
/// Gets the nickname for this user. /// Gets the nickname for this user.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// A string representing the nickname of the user; <c>null</c> if none is set. /// A string representing the nickname of the user; <see langword="null" /> if none is set.
/// </returns> /// </returns>
string Nickname { get; } string Nickname { get; }
/// <summary> /// <summary>
@@ -73,7 +73,7 @@ namespace Discord
/// Gets the date and time for when this user's guild boost began. /// Gets the date and time for when this user's guild boost began.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// A <see cref="DateTimeOffset"/> for when the user began boosting this guild; <c>null</c> if they are not boosting the guild. /// A <see cref="DateTimeOffset"/> for when the user began boosting this guild; <see langword="null" /> if they are not boosting the guild.
/// </returns> /// </returns>
DateTimeOffset? PremiumSince { get; } DateTimeOffset? PremiumSince { get; }
/// <summary> /// <summary>

View File

@@ -16,14 +16,14 @@ namespace Discord
/// Indicates whether or not this user has their email verified. /// Indicates whether or not this user has their email verified.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// <c>true</c> if this user's email has been verified; <c>false</c> if not. /// <see langword="true" /> if this user's email has been verified; <see langword="false" /> if not.
/// </returns> /// </returns>
bool IsVerified { get; } bool IsVerified { get; }
/// <summary> /// <summary>
/// Indicates whether or not this user has MFA enabled on their account. /// Indicates whether or not this user has MFA enabled on their account.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// <c>true</c> if this user has enabled multi-factor authentication on their account; <c>false</c> if not. /// <see langword="true" /> if this user has enabled multi-factor authentication on their account; <see langword="false" /> if not.
/// </returns> /// </returns>
bool IsMfaEnabled { get; } bool IsMfaEnabled { get; }
/// <summary> /// <summary>

View File

@@ -16,7 +16,7 @@ namespace Discord
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// This property retrieves a URL for this user's avatar. In event that the user does not have a valid avatar /// This property retrieves a URL for this user's avatar. In event that the user does not have a valid avatar
/// (i.e. their avatar identifier is not set), this method will return <c>null</c>. If you wish to /// (i.e. their avatar identifier is not set), this method will return <see langword="null" />. If you wish to
/// retrieve the default avatar for this user, consider using <see cref="IUser.GetDefaultAvatarUrl"/> (see /// retrieve the default avatar for this user, consider using <see cref="IUser.GetDefaultAvatarUrl"/> (see
/// example). /// example).
/// </remarks> /// </remarks>
@@ -31,7 +31,7 @@ namespace Discord
/// <param name="size">The size of the image to return in. This can be any power of two between 16 and 2048. /// <param name="size">The size of the image to return in. This can be any power of two between 16 and 2048.
/// </param> /// </param>
/// <returns> /// <returns>
/// A string representing the user's avatar URL; <c>null</c> if the user does not have an avatar in place. /// A string representing the user's avatar URL; <see langword="null" /> if the user does not have an avatar in place.
/// </returns> /// </returns>
string GetAvatarUrl(ImageFormat format = ImageFormat.Auto, ushort size = 128); string GetAvatarUrl(ImageFormat format = ImageFormat.Auto, ushort size = 128);
/// <summary> /// <summary>
@@ -62,14 +62,14 @@ namespace Discord
/// (indicated by the blue BOT tag within the official chat client). /// (indicated by the blue BOT tag within the official chat client).
/// </remarks> /// </remarks>
/// <returns> /// <returns>
/// <c>true</c> if the user is a bot application; otherwise <c>false</c>. /// <see langword="true" /> if the user is a bot application; otherwise <see langword="false" />.
/// </returns> /// </returns>
bool IsBot { get; } bool IsBot { get; }
/// <summary> /// <summary>
/// Gets a value that indicates whether this user is a webhook user. /// Gets a value that indicates whether this user is a webhook user.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// <c>true</c> if the user is a webhook; otherwise <c>false</c>. /// <see langword="true" /> if the user is a webhook; otherwise <see langword="false" />.
/// </returns> /// </returns>
bool IsWebhook { get; } bool IsWebhook { get; }
/// <summary> /// <summary>

View File

@@ -11,8 +11,8 @@ namespace Discord
/// Gets a value that indicates whether this user is deafened by the guild. /// Gets a value that indicates whether this user is deafened by the guild.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// <c>true</c> if the user is deafened (i.e. not permitted to listen to or speak to others) by the guild; /// <see langword="true" /> if the user is deafened (i.e. not permitted to listen to or speak to others) by the guild;
/// otherwise <c>false</c>. /// otherwise <see langword="false" />.
/// </returns> /// </returns>
bool IsDeafened { get; } bool IsDeafened { get; }
/// <summary> /// <summary>
@@ -20,14 +20,14 @@ namespace Discord
/// guild. /// guild.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// <c>true</c> if this user is muted by the guild; otherwise <c>false</c>. /// <see langword="true" /> if this user is muted by the guild; otherwise <see langword="false" />.
/// </returns> /// </returns>
bool IsMuted { get; } bool IsMuted { get; }
/// <summary> /// <summary>
/// Gets a value that indicates whether this user has marked themselves as deafened. /// Gets a value that indicates whether this user has marked themselves as deafened.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// <c>true</c> if this user has deafened themselves (i.e. not permitted to listen to or speak to others); otherwise <c>false</c>. /// <see langword="true" /> if this user has deafened themselves (i.e. not permitted to listen to or speak to others); otherwise <see langword="false" />.
/// </returns> /// </returns>
bool IsSelfDeafened { get; } bool IsSelfDeafened { get; }
/// <summary> /// <summary>
@@ -35,21 +35,21 @@ namespace Discord
/// speak via voice). /// speak via voice).
/// </summary> /// </summary>
/// <returns> /// <returns>
/// <c>true</c> if this user has muted themselves; otherwise <c>false</c>. /// <see langword="true" /> if this user has muted themselves; otherwise <see langword="false" />.
/// </returns> /// </returns>
bool IsSelfMuted { get; } bool IsSelfMuted { get; }
/// <summary> /// <summary>
/// Gets a value that indicates whether the user is muted by the current user. /// Gets a value that indicates whether the user is muted by the current user.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// <c>true</c> if the guild is temporarily blocking audio to/from this user; otherwise <c>false</c>. /// <see langword="true" /> if the guild is temporarily blocking audio to/from this user; otherwise <see langword="false" />.
/// </returns> /// </returns>
bool IsSuppressed { get; } bool IsSuppressed { get; }
/// <summary> /// <summary>
/// Gets the voice channel this user is currently in. /// Gets the voice channel this user is currently in.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// A generic voice channel object representing the voice channel that the user is currently in; <c>null</c> /// A generic voice channel object representing the voice channel that the user is currently in; <see langword="null" />
/// if none. /// if none.
/// </returns> /// </returns>
IVoiceChannel VoiceChannel { get; } IVoiceChannel VoiceChannel { get; }
@@ -61,14 +61,14 @@ namespace Discord
/// Gets a value that indicates if this user is streaming in a voice channel. /// Gets a value that indicates if this user is streaming in a voice channel.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// <c>true</c> if the user is streaming; otherwise <c>false</c>. /// <see langword="true" /> if the user is streaming; otherwise <see langword="false" />.
/// </returns> /// </returns>
bool IsStreaming { get; } bool IsStreaming { get; }
/// <summary> /// <summary>
/// Gets a value that indicates if the user is videoing in a voice channel. /// Gets a value that indicates if the user is videoing in a voice channel.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// <c>true</c> if the user has their camera turned on; otherwise <c>false</c>. /// <see langword="true" /> if the user has their camera turned on; otherwise <see langword="false" />.
/// </returns> /// </returns>
bool IsVideoing { get; } bool IsVideoing { get; }
/// <summary> /// <summary>

View File

@@ -84,7 +84,7 @@ namespace Discord
/// <param name="embeds">A array of <see cref="Embed"/>s to send with this response. Max 10.</param> /// <param name="embeds">A array of <see cref="Embed"/>s to send with this response. Max 10.</param>
/// <param name="allowedMentions"> /// <param name="allowedMentions">
/// Specifies if notifications are sent for mentioned users and roles in the message <paramref name="text"/>. /// Specifies if notifications are sent for mentioned users and roles in the message <paramref name="text"/>.
/// If <c>null</c>, all mentioned roles and users will be notified. /// If <see langword="null" />, all mentioned roles and users will be notified.
/// </param> /// </param>
/// <param name="options">The options to be used when sending the request.</param> /// <param name="options">The options to be used when sending the request.</param>
/// <param name="components">The message components to be included with this message. Used for interactions.</param> /// <param name="components">The message components to be included with this message. Used for interactions.</param>

View File

@@ -31,7 +31,7 @@ namespace Discord
/// <param name="options">The options to be used when sending the request.</param> /// <param name="options">The options to be used when sending the request.</param>
/// <param name="allowedMentions"> /// <param name="allowedMentions">
/// Specifies if notifications are sent for mentioned users and roles in the message <paramref name="text"/>. /// Specifies if notifications are sent for mentioned users and roles in the message <paramref name="text"/>.
/// If <c>null</c>, all mentioned roles and users will be notified. /// If <see langword="null" />, all mentioned roles and users will be notified.
/// </param> /// </param>
/// <param name="components">The message components to be included with this message. Used for interactions.</param> /// <param name="components">The message components to be included with this message. Used for interactions.</param>
/// <param name="embeds">A array of <see cref="Embed"/>s to send with this response. Max 10.</param> /// <param name="embeds">A array of <see cref="Embed"/>s to send with this response. Max 10.</param>

View File

@@ -76,7 +76,7 @@ namespace Discord
/// <param name="options">The options to be used when sending the request.</param> /// <param name="options">The options to be used when sending the request.</param>
/// <returns> /// <returns>
/// A task that represents the asynchronous get operation. The task result contains the channel associated /// A task that represents the asynchronous get operation. The task result contains the channel associated
/// with the snowflake identifier; <c>null</c> when the channel cannot be found. /// with the snowflake identifier; <see langword="null" /> when the channel cannot be found.
/// </returns> /// </returns>
Task<IChannel> GetChannelAsync(ulong id, CacheMode mode = CacheMode.AllowDownload, RequestOptions options = null); Task<IChannel> GetChannelAsync(ulong id, CacheMode mode = CacheMode.AllowDownload, RequestOptions options = null);
/// <summary> /// <summary>
@@ -192,7 +192,7 @@ namespace Discord
/// <param name="options">The options to be used when sending the request.</param> /// <param name="options">The options to be used when sending the request.</param>
/// <returns> /// <returns>
/// A task that represents the asynchronous get operation. The task result contains the guild associated /// A task that represents the asynchronous get operation. The task result contains the guild associated
/// with the snowflake identifier; <c>null</c> when the guild cannot be found. /// with the snowflake identifier; <see langword="null" /> when the guild cannot be found.
/// </returns> /// </returns>
Task<IGuild> GetGuildAsync(ulong id, CacheMode mode = CacheMode.AllowDownload, RequestOptions options = null); Task<IGuild> GetGuildAsync(ulong id, CacheMode mode = CacheMode.AllowDownload, RequestOptions options = null);
/// <summary> /// <summary>
@@ -248,7 +248,7 @@ namespace Discord
/// <param name="options">The options to be used when sending the request.</param> /// <param name="options">The options to be used when sending the request.</param>
/// <returns> /// <returns>
/// A task that represents the asynchronous get operation. The task result contains the user associated with /// A task that represents the asynchronous get operation. The task result contains the user associated with
/// the snowflake identifier; <c>null</c> if the user is not found. /// the snowflake identifier; <see langword="null" /> if the user is not found.
/// </returns> /// </returns>
Task<IUser> GetUserAsync(ulong id, CacheMode mode = CacheMode.AllowDownload, RequestOptions options = null); Task<IUser> GetUserAsync(ulong id, CacheMode mode = CacheMode.AllowDownload, RequestOptions options = null);
/// <summary> /// <summary>
@@ -266,7 +266,7 @@ namespace Discord
/// <param name="options">The options to be used when sending the request.</param> /// <param name="options">The options to be used when sending the request.</param>
/// <returns> /// <returns>
/// A task that represents the asynchronous get operation. The task result contains the user associated with /// A task that represents the asynchronous get operation. The task result contains the user associated with
/// the name and the discriminator; <c>null</c> if the user is not found. /// the name and the discriminator; <see langword="null" /> if the user is not found.
/// </returns> /// </returns>
Task<IUser> GetUserAsync(string username, string discriminator, RequestOptions options = null); Task<IUser> GetUserAsync(string username, string discriminator, RequestOptions options = null);
@@ -293,7 +293,7 @@ namespace Discord
/// <param name="options">The options to be used when sending the request.</param> /// <param name="options">The options to be used when sending the request.</param>
/// <returns> /// <returns>
/// A task that represents the asynchronous get operation. The task result contains the voice region /// A task that represents the asynchronous get operation. The task result contains the voice region
/// associated with the identifier; <c>null</c> if the voice region is not found. /// associated with the identifier; <see langword="null" /> if the voice region is not found.
/// </returns> /// </returns>
Task<IVoiceRegion> GetVoiceRegionAsync(string id, RequestOptions options = null); Task<IVoiceRegion> GetVoiceRegionAsync(string id, RequestOptions options = null);
@@ -304,7 +304,7 @@ namespace Discord
/// <param name="options">The options to be used when sending the request.</param> /// <param name="options">The options to be used when sending the request.</param>
/// <returns> /// <returns>
/// A task that represents the asynchronous get operation. The task result contains a webhook associated /// A task that represents the asynchronous get operation. The task result contains a webhook associated
/// with the identifier; <c>null</c> if the webhook is not found. /// with the identifier; <see langword="null" /> if the webhook is not found.
/// </returns> /// </returns>
Task<IWebhook> GetWebhookAsync(ulong id, RequestOptions options = null); Task<IWebhook> GetWebhookAsync(ulong id, RequestOptions options = null);

View File

@@ -33,7 +33,7 @@ namespace Discord
/// Gets the exception of this log entry. /// Gets the exception of this log entry.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// An <see cref="Discord.LogMessage.Exception" /> object associated with an incident; otherwise <c>null</c>. /// An <see cref="Discord.LogMessage.Exception" /> object associated with an incident; otherwise <see langword="null" />.
/// </returns> /// </returns>
public Exception Exception { get; } public Exception Exception { get; }

View File

@@ -25,7 +25,7 @@ namespace Discord.Net
/// <returns> /// <returns>
/// A /// A
/// <see href="https://discord.com/developers/docs/topics/opcodes-and-status-codes#json">JSON error code</see> /// <see href="https://discord.com/developers/docs/topics/opcodes-and-status-codes#json">JSON error code</see>
/// from Discord, or <c>null</c> if none. /// from Discord, or <see langword="null" /> if none.
/// </returns> /// </returns>
public DiscordErrorCode? DiscordCode { get; } public DiscordErrorCode? DiscordCode { get; }
/// <summary> /// <summary>

View File

@@ -21,7 +21,7 @@ namespace Discord
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// Gets or set the max time, in milliseconds, to wait for this request to complete. If /// Gets or set the max time, in milliseconds, to wait for this request to complete. If
/// <c>null</c>, a request will not time out. If a rate limit has been triggered for this request's bucket /// <see langword="null" />, a request will not time out. If a rate limit has been triggered for this request's bucket
/// and will not be unpaused in time, this request will fail immediately. /// and will not be unpaused in time, this request will fail immediately.
/// </remarks> /// </remarks>
/// <returns> /// <returns>
@@ -50,7 +50,7 @@ namespace Discord
public string AuditLogReason { get; set; } public string AuditLogReason { get; set; }
/// <summary> /// <summary>
/// Gets or sets whether or not this request should use the system /// Gets or sets whether or not this request should use the system
/// clock for rate-limiting. Defaults to <c>true</c>. /// clock for rate-limiting. Defaults to <see langword="true" />.
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// This property can also be set in <see cref="DiscordConfig"/>. /// This property can also be set in <see cref="DiscordConfig"/>.

View File

@@ -25,7 +25,7 @@ namespace Discord
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// This value is not guaranteed to be set; in cases where the entity cannot be pulled from cache, it is /// This value is not guaranteed to be set; in cases where the entity cannot be pulled from cache, it is
/// <c>null</c>. /// <see langword="null" />.
/// </remarks> /// </remarks>
public TEntity Value { get; } public TEntity Value { get; }
private Func<Task<TEntity>> DownloadFunc { get; } private Func<Task<TEntity>> DownloadFunc { get; }
@@ -81,7 +81,7 @@ namespace Discord
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// This value is not guaranteed to be set; in cases where the entity cannot be pulled from cache, it is /// This value is not guaranteed to be set; in cases where the entity cannot be pulled from cache, it is
/// <c>null</c>. /// <see langword="null" />.
/// </remarks> /// </remarks>
public TCachedEntity Value { get; } public TCachedEntity Value { get; }
private Func<Task<TDownloadableEntity>> DownloadFunc { get; } private Func<Task<TDownloadableEntity>> DownloadFunc { get; }

View File

@@ -157,7 +157,7 @@ namespace Discord
: this(collection, EqualityComparer<T>.Default) { } : this(collection, EqualityComparer<T>.Default) { }
public ConcurrentHashSet(IEqualityComparer<T> comparer) public ConcurrentHashSet(IEqualityComparer<T> comparer)
: this(DefaultConcurrencyLevel, DefaultCapacity, true, comparer) { } : this(DefaultConcurrencyLevel, DefaultCapacity, true, comparer) { }
/// <exception cref="ArgumentNullException"><paramref name="collection"/> is <c>null</c></exception> /// <exception cref="ArgumentNullException"><paramref name="collection"/> is <see langword="null" /></exception>
public ConcurrentHashSet(IEnumerable<T> collection, IEqualityComparer<T> comparer) public ConcurrentHashSet(IEnumerable<T> collection, IEqualityComparer<T> comparer)
: this(comparer) : this(comparer)
{ {
@@ -166,7 +166,7 @@ namespace Discord
InitializeFromCollection(collection); InitializeFromCollection(collection);
} }
/// <exception cref="ArgumentNullException"> /// <exception cref="ArgumentNullException">
/// <paramref name="collection" /> or <paramref name="comparer" /> is <c>null</c> /// <paramref name="collection" /> or <paramref name="comparer" /> is <see langword="null" />
/// </exception> /// </exception>
public ConcurrentHashSet(int concurrencyLevel, IEnumerable<T> collection, IEqualityComparer<T> comparer) public ConcurrentHashSet(int concurrencyLevel, IEnumerable<T> collection, IEqualityComparer<T> comparer)
: this(concurrencyLevel, DefaultCapacity, false, comparer) : this(concurrencyLevel, DefaultCapacity, false, comparer)
@@ -217,7 +217,7 @@ namespace Discord
if (_budget == 0) if (_budget == 0)
_budget = _tables._buckets.Length / _tables._locks.Length; _budget = _tables._buckets.Length / _tables._locks.Length;
} }
/// <exception cref="ArgumentNullException"><paramref name="value"/> is <c>null</c></exception> /// <exception cref="ArgumentNullException"><paramref name="value"/> is <see langword="null" /></exception>
public bool ContainsKey(T value) public bool ContainsKey(T value)
{ {
if (value == null) if (value == null)
@@ -242,7 +242,7 @@ namespace Discord
return false; return false;
} }
/// <exception cref="ArgumentNullException"><paramref name="value"/> is <c>null</c></exception> /// <exception cref="ArgumentNullException"><paramref name="value"/> is <see langword="null" /></exception>
public bool TryAdd(T value) public bool TryAdd(T value)
{ {
if (value == null) if (value == null)
@@ -294,7 +294,7 @@ namespace Discord
} }
} }
/// <exception cref="ArgumentNullException"><paramref name="value"/> is <c>null</c></exception> /// <exception cref="ArgumentNullException"><paramref name="value"/> is <see langword="null" /></exception>
public bool TryRemove(T value) public bool TryRemove(T value)
{ {
if (value == null) if (value == null)

View File

@@ -144,7 +144,7 @@ namespace Discord
/// </summary> /// </summary>
/// <param name="tokenType"> The type of token to validate. </param> /// <param name="tokenType"> The type of token to validate. </param>
/// <param name="token"> The token value to validate. </param> /// <param name="token"> The token value to validate. </param>
/// <exception cref="ArgumentNullException"> Thrown when the supplied token string is <c>null</c>, empty, or contains only whitespace.</exception> /// <exception cref="ArgumentNullException"> Thrown when the supplied token string is <see langword="null" />, empty, or contains only whitespace.</exception>
/// <exception cref="ArgumentException"> Thrown when the supplied <see cref="TokenType"/> or token value is invalid. </exception> /// <exception cref="ArgumentException"> Thrown when the supplied <see cref="TokenType"/> or token value is invalid. </exception>
public static void ValidateToken(TokenType tokenType, string token) public static void ValidateToken(TokenType tokenType, string token)
{ {

View File

@@ -15,7 +15,7 @@ namespace Discord.Interactions
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// <see cref="Preconditions" /> of the same group require only one of the preconditions to pass in order to /// <see cref="Preconditions" /> of the same group require only one of the preconditions to pass in order to
/// be successful (A || B). Specifying <see cref="Group" /> = <c>null</c> or not at all will /// be successful (A || B). Specifying <see cref="Group" /> = <see langword="null" /> or not at all will
/// require *all* preconditions to pass, just like normal (A &amp;&amp; B). /// require *all* preconditions to pass, just like normal (A &amp;&amp; B).
/// </remarks> /// </remarks>
public string Group { get; set; } = null; public string Group { get; set; } = null;

View File

@@ -250,7 +250,7 @@ namespace Discord.Interactions
/// Create and loads a <see cref="ModuleInfo"/> using a builder factory. /// Create and loads a <see cref="ModuleInfo"/> using a builder factory.
/// </summary> /// </summary>
/// <param name="name">Name of the module.</param> /// <param name="name">Name of the module.</param>
/// <param name="services">The <see cref="IServiceProvider"/> for your dependency injection solution if using one; otherwise, pass <c>null</c>.</param> /// <param name="services">The <see cref="IServiceProvider"/> for your dependency injection solution if using one; otherwise, pass <see langword="null" />.</param>
/// <param name="buildFunc">Module builder factory.</param> /// <param name="buildFunc">Module builder factory.</param>
/// <returns> /// <returns>
/// A task representing the operation for adding modules. The task result contains the built module instance. /// A task representing the operation for adding modules. The task result contains the built module instance.
@@ -280,7 +280,7 @@ namespace Discord.Interactions
/// Discover and load command modules from an <see cref="Assembly"/>. /// Discover and load command modules from an <see cref="Assembly"/>.
/// </summary> /// </summary>
/// <param name="assembly"><see cref="Assembly"/> the command modules are defined in.</param> /// <param name="assembly"><see cref="Assembly"/> the command modules are defined in.</param>
/// <param name="services">The <see cref="IServiceProvider"/> for your dependency injection solution if using one; otherwise, pass <c>null</c>.</param> /// <param name="services">The <see cref="IServiceProvider"/> for your dependency injection solution if using one; otherwise, pass <see langword="null" />.</param>
/// <returns> /// <returns>
/// A task representing the operation for adding modules. The task result contains a collection of the modules added. /// A task representing the operation for adding modules. The task result contains a collection of the modules added.
/// </returns> /// </returns>
@@ -312,7 +312,7 @@ namespace Discord.Interactions
/// Add a command module from a <see cref="Type"/>. /// Add a command module from a <see cref="Type"/>.
/// </summary> /// </summary>
/// <typeparam name="T">Type of the module.</typeparam> /// <typeparam name="T">Type of the module.</typeparam>
/// <param name="services">The <see cref="IServiceProvider" /> for your dependency injection solution if using one; otherwise, pass <c>null</c> .</param> /// <param name="services">The <see cref="IServiceProvider" /> for your dependency injection solution if using one; otherwise, pass <see langword="null" /> .</param>
/// <returns> /// <returns>
/// A task representing the operation for adding the module. The task result contains the built module. /// A task representing the operation for adding the module. The task result contains the built module.
/// </returns> /// </returns>
@@ -329,7 +329,7 @@ namespace Discord.Interactions
/// Add a command module from a <see cref="Type"/>. /// Add a command module from a <see cref="Type"/>.
/// </summary> /// </summary>
/// <param name="type">Type of the module.</param> /// <param name="type">Type of the module.</param>
/// <param name="services">The <see cref="IServiceProvider" /> for your dependency injection solution if using one; otherwise, pass <c>null</c> .</param> /// <param name="services">The <see cref="IServiceProvider" /> for your dependency injection solution if using one; otherwise, pass <see langword="null" /> .</param>
/// <returns> /// <returns>
/// A task representing the operation for adding the module. The task result contains the built module. /// A task representing the operation for adding the module. The task result contains the built module.
/// </returns> /// </returns>

View File

@@ -91,7 +91,7 @@ namespace Discord.Interactions
/// Gets a string that indicates the autocompletion result. /// Gets a string that indicates the autocompletion result.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// <c>Success</c> if <see cref="IsSuccess"/> is <c>true</c>; otherwise "<see cref="Error"/>: /// <c>Success</c> if <see cref="IsSuccess"/> is <see langword="true" />; otherwise "<see cref="Error"/>:
/// <see cref="ErrorReason"/>". /// <see cref="ErrorReason"/>".
/// </returns> /// </returns>
public override string ToString() => IsSuccess ? "Success" : $"{Error}: {ErrorReason}"; public override string ToString() => IsSuccess ? "Success" : $"{Error}: {ErrorReason}";

View File

@@ -17,7 +17,7 @@ namespace Discord.Interactions
/// <summary> /// <summary>
/// Initializes a new <see cref="RuntimeResult" /> class with the type of error and reason. /// Initializes a new <see cref="RuntimeResult" /> class with the type of error and reason.
/// </summary> /// </summary>
/// <param name="error">The type of failure, or <c>null</c> if none.</param> /// <param name="error">The type of failure, or <see langword="null" /> if none.</param>
/// <param name="reason">The reason of failure.</param> /// <param name="reason">The reason of failure.</param>
protected RuntimeResult(InteractionCommandError? error, string reason) protected RuntimeResult(InteractionCommandError? error, string reason)
{ {
@@ -29,7 +29,7 @@ namespace Discord.Interactions
/// Gets a string that indicates the runtime result. /// Gets a string that indicates the runtime result.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// <c>Success</c> if <see cref="IsSuccess"/> is <c>true</c>; otherwise "<see cref="Error"/>: /// <c>Success</c> if <see cref="IsSuccess"/> is <see langword="true" />; otherwise "<see cref="Error"/>:
/// <see cref="ErrorReason"/>". /// <see cref="ErrorReason"/>".
/// </returns> /// </returns>
public override string ToString() => ErrorReason ?? (IsSuccess ? "Successful" : "Unsuccessful"); public override string ToString() => ErrorReason ?? (IsSuccess ? "Successful" : "Unsuccessful");

View File

@@ -2,7 +2,7 @@ using Discord.Rest;
namespace Discord.API.AuditLogs; namespace Discord.API.AuditLogs;
public class GuildInfoAuditLogModel : IAuditLogInfoModel internal class GuildInfoAuditLogModel : IAuditLogInfoModel
{ {
[JsonField("name")] [JsonField("name")]
public string Name { get; set; } public string Name { get; set; }

View File

@@ -2,7 +2,7 @@ using Newtonsoft.Json;
namespace Discord.API; namespace Discord.API;
public class ForumReactionEmoji internal class ForumReactionEmoji
{ {
[JsonProperty("emoji_id")] [JsonProperty("emoji_id")]
public ulong? EmojiId { get; set; } public ulong? EmojiId { get; set; }

View File

@@ -5,7 +5,7 @@ namespace Discord.API
/// <summary> /// <summary>
/// Represents a vanity invite. /// Represents a vanity invite.
/// </summary> /// </summary>
public class InviteVanity internal class InviteVanity
{ {
/// <summary> /// <summary>
/// The unique code for the invite link. /// The unique code for the invite link.

View File

@@ -7,7 +7,7 @@ using System.Threading.Tasks;
namespace Discord.API namespace Discord.API
{ {
public class MessageActivity internal class MessageActivity
{ {
[JsonProperty("type")] [JsonProperty("type")]
public Optional<MessageActivityType> Type { get; set; } public Optional<MessageActivityType> Type { get; set; }

View File

@@ -7,7 +7,7 @@ using System.Threading.Tasks;
namespace Discord.API namespace Discord.API
{ {
public class MessageApplication internal class MessageApplication
{ {
/// <summary> /// <summary>
/// Gets the snowflake ID of the application. /// Gets the snowflake ID of the application.

View File

@@ -3,7 +3,7 @@ using System.Collections.Generic;
namespace Discord.API; namespace Discord.API;
public class RoleConnection internal class RoleConnection
{ {
[JsonProperty("platform_name")] [JsonProperty("platform_name")]
public Optional<string> PlatformName { get; set; } public Optional<string> PlatformName { get; set; }

View File

@@ -3,7 +3,7 @@ using System.Collections.Generic;
namespace Discord.API; namespace Discord.API;
public class RoleConnectionMetadata internal class RoleConnectionMetadata
{ {
[JsonProperty("type")] [JsonProperty("type")]
public RoleConnectionMetadataType Type { get; set; } public RoleConnectionMetadataType Type { get; set; }

View File

@@ -46,7 +46,7 @@ namespace Discord.API.Rest
[JsonProperty("default_sort_order")] [JsonProperty("default_sort_order")]
public Optional<ForumSortOrder?> DefaultSortOrder { get; set; } public Optional<ForumSortOrder?> DefaultSortOrder { get; set; }
[JsonProperty("default_forum_layout ")] [JsonProperty("default_forum_layout")]
public Optional<ForumLayout> DefaultLayout { get; set; } public Optional<ForumLayout> DefaultLayout { get; set; }
public CreateGuildChannelParams(string name, ChannelType type) public CreateGuildChannelParams(string name, ChannelType type)

View File

@@ -3,7 +3,7 @@ using Newtonsoft.Json;
namespace Discord.API; namespace Discord.API;
[JsonObject(MemberSerialization = MemberSerialization.OptIn)] [JsonObject(MemberSerialization = MemberSerialization.OptIn)]
public class ModifyForumReactionEmojiParams internal class ModifyForumReactionEmojiParams
{ {
[JsonProperty("emoji_id")] [JsonProperty("emoji_id")]
public Optional<ulong?> EmojiId { get; set; } public Optional<ulong?> EmojiId { get; set; }

View File

@@ -1471,7 +1471,8 @@ namespace Discord.API
{ {
if ((!args.Embeds.IsSpecified || args.Embeds.Value == null || args.Embeds.Value.Length == 0) if ((!args.Embeds.IsSpecified || args.Embeds.Value == null || args.Embeds.Value.Length == 0)
&& (!args.Content.IsSpecified || args.Content.Value is null || string.IsNullOrWhiteSpace(args.Content.Value)) && (!args.Content.IsSpecified || args.Content.Value is null || string.IsNullOrWhiteSpace(args.Content.Value))
&& (!args.Components.IsSpecified || args.Components.Value is null || args.Components.Value.Length == 0)) && (!args.Components.IsSpecified || args.Components.Value is null || args.Components.Value.Length == 0)
&& (!args.File.IsSpecified))
{ {
throw new ArgumentException("At least one of 'Content', 'Embeds', 'File' or 'Components' must be specified.", nameof(args)); throw new ArgumentException("At least one of 'Content', 'Embeds', 'File' or 'Components' must be specified.", nameof(args));
} }
@@ -1494,7 +1495,8 @@ namespace Discord.API
{ {
if ((!args.Embeds.IsSpecified || args.Embeds.Value == null || args.Embeds.Value.Length == 0) if ((!args.Embeds.IsSpecified || args.Embeds.Value == null || args.Embeds.Value.Length == 0)
&& (!args.Content.IsSpecified || args.Content.Value is null || string.IsNullOrWhiteSpace(args.Content.Value)) && (!args.Content.IsSpecified || args.Content.Value is null || string.IsNullOrWhiteSpace(args.Content.Value))
&& (!args.MessageComponents.IsSpecified || args.MessageComponents.Value is null || args.MessageComponents.Value.Length == 0)) && (!args.MessageComponents.IsSpecified || args.MessageComponents.Value is null || args.MessageComponents.Value.Length == 0)
&& (args.Files.Length == 0))
{ {
throw new ArgumentException("At least one of 'Content', 'Embeds', 'Files' or 'Components' must be specified.", nameof(args)); throw new ArgumentException("At least one of 'Content', 'Embeds', 'Files' or 'Components' must be specified.", nameof(args));
} }

View File

@@ -92,7 +92,7 @@ public class ChannelCreateAuditLogData : IAuditLogData
/// <returns> /// <returns>
/// An <see cref="int"/> representing the time in seconds required before the user can send another /// An <see cref="int"/> representing the time in seconds required before the user can send another
/// message; <c>0</c> if disabled. /// message; <c>0</c> if disabled.
/// <c>null</c> if this is not mentioned in this entry. /// <see langword="null" /> if this is not mentioned in this entry.
/// </returns> /// </returns>
public int? SlowModeInterval { get; } public int? SlowModeInterval { get; }
@@ -100,8 +100,8 @@ public class ChannelCreateAuditLogData : IAuditLogData
/// Gets the value that indicates whether the created channel is NSFW. /// Gets the value that indicates whether the created channel is NSFW.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// <c>true</c> if the created channel has the NSFW flag enabled; otherwise <c>false</c>. /// <see langword="true" /> if the created channel has the NSFW flag enabled; otherwise <see langword="false" />.
/// <c>null</c> if this is not mentioned in this entry. /// <see langword="null" /> if this is not mentioned in this entry.
/// </returns> /// </returns>
public bool? IsNsfw { get; } public bool? IsNsfw { get; }
@@ -111,7 +111,7 @@ public class ChannelCreateAuditLogData : IAuditLogData
/// <returns> /// <returns>
/// An <see cref="int"/> representing the bit-rate (bps) that the created voice channel defines and requests the /// An <see cref="int"/> representing the bit-rate (bps) that the created voice channel defines and requests the
/// client(s) to use. /// client(s) to use.
/// <c>null</c> if this is not mentioned in this entry. /// <see langword="null" /> if this is not mentioned in this entry.
/// </returns> /// </returns>
public int? Bitrate { get; } public int? Bitrate { get; }

View File

@@ -93,15 +93,15 @@ public class ChannelDeleteAuditLogData : IAuditLogData
/// <returns> /// <returns>
/// An <see cref="int"/> representing the time in seconds required before the user can send another /// An <see cref="int"/> representing the time in seconds required before the user can send another
/// message; <c>0</c> if disabled. /// message; <c>0</c> if disabled.
/// <c>null</c> if this is not mentioned in this entry. /// <see langword="null" /> if this is not mentioned in this entry.
/// </returns> /// </returns>
public int? SlowModeInterval { get; } public int? SlowModeInterval { get; }
/// <summary> /// <summary>
/// Gets the value that indicates whether the deleted channel was NSFW. /// Gets the value that indicates whether the deleted channel was NSFW.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// <c>true</c> if this channel had the NSFW flag enabled; otherwise <c>false</c>. /// <see langword="true" /> if this channel had the NSFW flag enabled; otherwise <see langword="false" />.
/// <c>null</c> if this is not mentioned in this entry. /// <see langword="null" /> if this is not mentioned in this entry.
/// </returns> /// </returns>
public bool? IsNsfw { get; } public bool? IsNsfw { get; }
/// <summary> /// <summary>
@@ -109,7 +109,7 @@ public class ChannelDeleteAuditLogData : IAuditLogData
/// </summary> /// </summary>
/// <returns> /// <returns>
/// An <see cref="int"/> representing the bit-rate set of the voice channel. /// An <see cref="int"/> representing the bit-rate set of the voice channel.
/// <c>null</c> if this is not mentioned in this entry. /// <see langword="null" /> if this is not mentioned in this entry.
/// </returns> /// </returns>
public int? Bitrate { get; } public int? Bitrate { get; }
/// <summary> /// <summary>

View File

@@ -67,15 +67,15 @@ namespace Discord.Rest
/// <returns> /// <returns>
/// An <see cref="int"/> representing the time in seconds required before the user can send another /// An <see cref="int"/> representing the time in seconds required before the user can send another
/// message; <c>0</c> if disabled. /// message; <c>0</c> if disabled.
/// <c>null</c> if this is not mentioned in this entry. /// <see langword="null" /> if this is not mentioned in this entry.
/// </returns> /// </returns>
public int? SlowModeInterval { get; } public int? SlowModeInterval { get; }
/// <summary> /// <summary>
/// Gets the value that indicates whether this channel is NSFW. /// Gets the value that indicates whether this channel is NSFW.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// <c>true</c> if this channel has the NSFW flag enabled; otherwise <c>false</c>. /// <see langword="true" /> if this channel has the NSFW flag enabled; otherwise <see langword="false" />.
/// <c>null</c> if this is not mentioned in this entry. /// <see langword="null" /> if this is not mentioned in this entry.
/// </returns> /// </returns>
public bool? IsNsfw { get; } public bool? IsNsfw { get; }
/// <summary> /// <summary>
@@ -83,14 +83,14 @@ namespace Discord.Rest
/// </summary> /// </summary>
/// <returns> /// <returns>
/// An <see cref="int"/> representing the bit-rate set for the voice channel; /// An <see cref="int"/> representing the bit-rate set for the voice channel;
/// <c>null</c> if this is not mentioned in this entry. /// <see langword="null" /> if this is not mentioned in this entry.
/// </returns> /// </returns>
public int? Bitrate { get; } public int? Bitrate { get; }
/// <summary> /// <summary>
/// Gets the type of this channel. /// Gets the type of this channel.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// The channel type of this channel; <c>null</c> if not applicable. /// The channel type of this channel; <see langword="null" /> if not applicable.
/// </returns> /// </returns>
public ChannelType? ChannelType { get; } public ChannelType? ChannelType { get; }

View File

@@ -123,7 +123,7 @@ public struct GuildInfo
/// <returns> /// <returns>
/// An <see cref="int"/> representing the amount of time in seconds for a user to be marked as inactive /// An <see cref="int"/> representing the amount of time in seconds for a user to be marked as inactive
/// and moved into the AFK voice channel. /// and moved into the AFK voice channel.
/// <c>null</c> if this is not mentioned in this entry. /// <see langword="null" /> if this is not mentioned in this entry.
/// </returns> /// </returns>
public int? AfkTimeout { get; } public int? AfkTimeout { get; }
/// <summary> /// <summary>
@@ -131,14 +131,14 @@ public struct GuildInfo
/// </summary> /// </summary>
/// <returns> /// <returns>
/// The default message notifications setting of this guild. /// The default message notifications setting of this guild.
/// <c>null</c> if this is not mentioned in this entry. /// <see langword="null" /> if this is not mentioned in this entry.
/// </returns> /// </returns>
public DefaultMessageNotifications? DefaultMessageNotifications { get; } public DefaultMessageNotifications? DefaultMessageNotifications { get; }
/// <summary> /// <summary>
/// Gets the ID of the AFK voice channel for this guild. /// Gets the ID of the AFK voice channel for this guild.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// A <see cref="ulong"/> representing the snowflake identifier of the AFK voice channel; <c>null</c> if /// A <see cref="ulong"/> representing the snowflake identifier of the AFK voice channel; <see langword="null" /> if
/// none is set. /// none is set.
/// </returns> /// </returns>
public ulong? AfkChannelId { get; } public ulong? AfkChannelId { get; }
@@ -157,7 +157,7 @@ public struct GuildInfo
/// Gets the ID of this guild's icon. /// Gets the ID of this guild's icon.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// A string containing the identifier for the splash image; <c>null</c> if none is set. /// A string containing the identifier for the splash image; <see langword="null" /> if none is set.
/// </returns> /// </returns>
public string IconHash { get; } public string IconHash { get; }
/// <summary> /// <summary>
@@ -165,7 +165,7 @@ public struct GuildInfo
/// </summary> /// </summary>
/// <returns> /// <returns>
/// The level of requirements. /// The level of requirements.
/// <c>null</c> if this is not mentioned in this entry. /// <see langword="null" /> if this is not mentioned in this entry.
/// </returns> /// </returns>
public VerificationLevel? VerificationLevel { get; } public VerificationLevel? VerificationLevel { get; }
/// <summary> /// <summary>
@@ -181,7 +181,7 @@ public struct GuildInfo
/// </summary> /// </summary>
/// <returns> /// <returns>
/// The level of MFA requirement. /// The level of MFA requirement.
/// <c>null</c> if this is not mentioned in this entry. /// <see langword="null" /> if this is not mentioned in this entry.
/// </returns> /// </returns>
public MfaLevel? MfaLevel { get; } public MfaLevel? MfaLevel { get; }
/// <summary> /// <summary>
@@ -196,7 +196,7 @@ public struct GuildInfo
/// </summary> /// </summary>
/// <returns> /// <returns>
/// A <see cref="ulong"/> representing the snowflake identifier of the channel where system /// A <see cref="ulong"/> representing the snowflake identifier of the channel where system
/// messages are sent; <c>null</c> if none is set. /// messages are sent; <see langword="null" /> if none is set.
/// </returns> /// </returns>
public ulong? SystemChannelId { get; } public ulong? SystemChannelId { get; }
/// <summary> /// <summary>
@@ -204,15 +204,15 @@ public struct GuildInfo
/// </summary> /// </summary>
/// <returns> /// <returns>
/// A <see cref="ulong"/> representing the snowflake identifier of the embedded channel found within the /// A <see cref="ulong"/> representing the snowflake identifier of the embedded channel found within the
/// widget settings of this guild; <c>null</c> if none is set. /// widget settings of this guild; <see langword="null" /> if none is set.
/// </returns> /// </returns>
public ulong? EmbedChannelId { get; } public ulong? EmbedChannelId { get; }
/// <summary> /// <summary>
/// Gets a value that indicates whether this guild is embeddable (i.e. can use widget). /// Gets a value that indicates whether this guild is embeddable (i.e. can use widget).
/// </summary> /// </summary>
/// <returns> /// <returns>
/// <c>true</c> if this guild can be embedded via widgets; otherwise <c>false</c>. /// <see langword="true" /> if this guild can be embedded via widgets; otherwise <see langword="false" />.
/// <c>null</c> if this is not mentioned in this entry. /// <see langword="null" /> if this is not mentioned in this entry.
/// </returns> /// </returns>
public bool? IsEmbeddable { get; } public bool? IsEmbeddable { get; }
} }

View File

@@ -59,8 +59,8 @@ public class InviteCreateAuditLogData : IAuditLogData
/// Gets a value that determines whether the invite is a temporary one. /// Gets a value that determines whether the invite is a temporary one.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// <c>true</c> if users accepting this invite will be removed from the guild when they log off; otherwise /// <see langword="true" /> if users accepting this invite will be removed from the guild when they log off; otherwise
/// <c>false</c>. /// <see langword="false" />.
/// </returns> /// </returns>
public bool Temporary { get; } public bool Temporary { get; }
@@ -96,7 +96,7 @@ public class InviteCreateAuditLogData : IAuditLogData
/// </summary> /// </summary>
/// <returns> /// <returns>
/// An <see cref="int"/> representing the number of uses this invite may be accepted until it is removed /// An <see cref="int"/> representing the number of uses this invite may be accepted until it is removed
/// from the guild; <c>null</c> if none is set. /// from the guild; <see langword="null" /> if none is set.
/// </returns> /// </returns>
public int MaxUses { get; } public int MaxUses { get; }
} }

View File

@@ -59,8 +59,8 @@ public class InviteDeleteAuditLogData : IAuditLogData
/// Gets a value that indicates whether the invite is a temporary one. /// Gets a value that indicates whether the invite is a temporary one.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// <c>true</c> if users accepting this invite will be removed from the guild when they log off; otherwise /// <see langword="true" /> if users accepting this invite will be removed from the guild when they log off; otherwise
/// <c>false</c>. /// <see langword="false" />.
/// </returns> /// </returns>
public bool Temporary { get; } public bool Temporary { get; }
@@ -96,7 +96,7 @@ public class InviteDeleteAuditLogData : IAuditLogData
/// </summary> /// </summary>
/// <returns> /// <returns>
/// An <see cref="int"/> representing the number of uses this invite may be accepted until it is removed /// An <see cref="int"/> representing the number of uses this invite may be accepted until it is removed
/// from the guild; <c>null</c> if none is set. /// from the guild; <see langword="null" /> if none is set.
/// </returns> /// </returns>
public int MaxUses { get; } public int MaxUses { get; }
} }

View File

@@ -21,7 +21,7 @@ public struct InviteInfo
/// Gets the time (in seconds) until the invite expires. /// Gets the time (in seconds) until the invite expires.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// An <see cref="int"/> representing the time in seconds until this invite expires; <c>null</c> if this /// An <see cref="int"/> representing the time in seconds until this invite expires; <see langword="null" /> if this
/// invite never expires or not specified. /// invite never expires or not specified.
/// </returns> /// </returns>
public int? MaxAge { get; } public int? MaxAge { get; }
@@ -38,8 +38,8 @@ public struct InviteInfo
/// Gets a value that indicates whether the invite is a temporary one. /// Gets a value that indicates whether the invite is a temporary one.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// <c>true</c> if users accepting this invite will be removed from the guild when they log off, /// <see langword="true" /> if users accepting this invite will be removed from the guild when they log off,
/// <c>false</c> if not; <c>null</c> if not specified. /// <see langword="false" /> if not; <see langword="null" /> if not specified.
/// </returns> /// </returns>
public bool? Temporary { get; } public bool? Temporary { get; }
@@ -48,7 +48,7 @@ public struct InviteInfo
/// </summary> /// </summary>
/// <returns> /// <returns>
/// A <see cref="ulong"/> representing the channel snowflake identifier that the invite points to; /// A <see cref="ulong"/> representing the channel snowflake identifier that the invite points to;
/// <c>null</c> if not specified. /// <see langword="null" /> if not specified.
/// </returns> /// </returns>
public ulong? ChannelId { get; } public ulong? ChannelId { get; }
@@ -57,7 +57,7 @@ public struct InviteInfo
/// </summary> /// </summary>
/// <returns> /// <returns>
/// An <see cref="int"/> representing the number of uses this invite may be accepted until it is removed /// An <see cref="int"/> representing the number of uses this invite may be accepted until it is removed
/// from the guild; <c>null</c> if none is specified. /// from the guild; <see langword="null" /> if none is specified.
/// </returns> /// </returns>
public int? MaxUses { get; } public int? MaxUses { get; }

View File

@@ -32,7 +32,7 @@ public struct MemberRoleEditInfo
/// Gets a value that indicates whether the role was added to the user. /// Gets a value that indicates whether the role was added to the user.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// <c>true</c> if the role was added to the user; otherwise <c>false</c>. /// <see langword="true" /> if the role was added to the user; otherwise <see langword="false" />.
/// </returns> /// </returns>
public bool Added { get; } public bool Added { get; }
} }

View File

@@ -30,7 +30,7 @@ public struct RoleEditInfo
/// Gets the color of this role. /// Gets the color of this role.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// A color object representing the color assigned to this role; <c>null</c> if this role does not have a /// A color object representing the color assigned to this role; <see langword="null" /> if this role does not have a
/// color. /// color.
/// </returns> /// </returns>
public Color? Color { get; } public Color? Color { get; }
@@ -39,8 +39,8 @@ public struct RoleEditInfo
/// Gets a value that indicates whether this role is mentionable. /// Gets a value that indicates whether this role is mentionable.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// <c>true</c> if other members can mention this role in a text channel; otherwise <c>false</c>; /// <see langword="true" /> if other members can mention this role in a text channel; otherwise <see langword="false" />;
/// <c>null</c> if this is not mentioned in this entry. /// <see langword="null" /> if this is not mentioned in this entry.
/// </returns> /// </returns>
public bool? Mentionable { get; } public bool? Mentionable { get; }
@@ -49,8 +49,8 @@ public struct RoleEditInfo
/// section on the user list). /// section on the user list).
/// </summary> /// </summary>
/// <returns> /// <returns>
/// <c>true</c> if this role's members will appear in a separate section in the user list; otherwise /// <see langword="true" /> if this role's members will appear in a separate section in the user list; otherwise
/// <c>false</c>; <c>null</c> if this is not mentioned in this entry. /// <see langword="false" />; <see langword="null" /> if this is not mentioned in this entry.
/// </returns> /// </returns>
public bool? Hoist { get; } public bool? Hoist { get; }
@@ -66,7 +66,7 @@ public struct RoleEditInfo
/// Gets the permissions assigned to this role. /// Gets the permissions assigned to this role.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// A guild permissions object representing the permissions that have been assigned to this role; <c>null</c> /// A guild permissions object representing the permissions that have been assigned to this role; <see langword="null" />
/// if no permissions have been assigned. /// if no permissions have been assigned.
/// </returns> /// </returns>
public GuildPermissions? Permissions { get; } public GuildPermissions? Permissions { get; }

View File

@@ -43,7 +43,7 @@ public class ThreadCreateAuditLogData : IAuditLogData
/// Gets the thread that was created if it still exists. /// Gets the thread that was created if it still exists.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// A thread object representing the thread that was created if it still exists, otherwise returns <c>null</c>. /// A thread object representing the thread that was created if it still exists, otherwise returns <see langword="null" />.
/// </returns> /// </returns>
public IThreadChannel Thread { get; } public IThreadChannel Thread { get; }
@@ -75,7 +75,7 @@ public class ThreadCreateAuditLogData : IAuditLogData
/// Gets the value that indicates whether the thread is archived. /// Gets the value that indicates whether the thread is archived.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// <c>true</c> if this thread has the Archived flag enabled; otherwise <c>false</c>. /// <see langword="true" /> if this thread has the Archived flag enabled; otherwise <see langword="false" />.
/// </returns> /// </returns>
public bool IsArchived { get; } public bool IsArchived { get; }
@@ -91,7 +91,7 @@ public class ThreadCreateAuditLogData : IAuditLogData
/// Gets the value that indicates whether the thread is locked. /// Gets the value that indicates whether the thread is locked.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// <c>true</c> if this thread has the Locked flag enabled; otherwise <c>false</c>. /// <see langword="true" /> if this thread has the Locked flag enabled; otherwise <see langword="false" />.
/// </returns> /// </returns>
public bool IsLocked { get; } public bool IsLocked { get; }
@@ -101,7 +101,7 @@ public class ThreadCreateAuditLogData : IAuditLogData
/// <returns> /// <returns>
/// An <see cref="int"/> representing the time in seconds required before the user can send another /// An <see cref="int"/> representing the time in seconds required before the user can send another
/// message; <c>0</c> if disabled. /// message; <c>0</c> if disabled.
/// <c>null</c> if this is not mentioned in this entry. /// <see langword="null" /> if this is not mentioned in this entry.
/// </returns> /// </returns>
public int? SlowModeInterval { get; } public int? SlowModeInterval { get; }

View File

@@ -63,7 +63,7 @@ public class ThreadDeleteAuditLogData : IAuditLogData
/// Gets the value that indicates whether the deleted thread was archived. /// Gets the value that indicates whether the deleted thread was archived.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// <c>true</c> if this thread had the Archived flag enabled; otherwise <c>false</c>. /// <see langword="true" /> if this thread had the Archived flag enabled; otherwise <see langword="false" />.
/// </returns> /// </returns>
public bool IsArchived { get; } public bool IsArchived { get; }
@@ -79,7 +79,7 @@ public class ThreadDeleteAuditLogData : IAuditLogData
/// Gets the value that indicates whether the deleted thread was locked. /// Gets the value that indicates whether the deleted thread was locked.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// <c>true</c> if this thread had the Locked flag enabled; otherwise <c>false</c>. /// <see langword="true" /> if this thread had the Locked flag enabled; otherwise <see langword="false" />.
/// </returns> /// </returns>
public bool IsLocked { get; } public bool IsLocked { get; }
@@ -89,7 +89,7 @@ public class ThreadDeleteAuditLogData : IAuditLogData
/// <returns> /// <returns>
/// An <see cref="int"/> representing the time in seconds required before the user can send another /// An <see cref="int"/> representing the time in seconds required before the user can send another
/// message; <c>0</c> if disabled. /// message; <c>0</c> if disabled.
/// <c>null</c> if this is not mentioned in this entry. /// <see langword="null" /> if this is not mentioned in this entry.
/// </returns> /// </returns>
public int? SlowModeInterval { get; } public int? SlowModeInterval { get; }

View File

@@ -37,7 +37,7 @@ public class ThreadUpdateAuditLogData : IAuditLogData
/// Gets the thread that was created if it still exists. /// Gets the thread that was created if it still exists.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// A thread object representing the thread that was created if it still exists, otherwise returns <c>null</c>. /// A thread object representing the thread that was created if it still exists, otherwise returns <see langword="null" />.
/// </returns> /// </returns>
public IThreadChannel Thread { get; } public IThreadChannel Thread { get; }

View File

@@ -39,7 +39,7 @@ public class WebhookCreateAuditLogData : IAuditLogData
/// Gets the webhook that was created if it still exists. /// Gets the webhook that was created if it still exists.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// A webhook object representing the webhook that was created if it still exists, otherwise returns <c>null</c>. /// A webhook object representing the webhook that was created if it still exists, otherwise returns <see langword="null" />.
/// </returns> /// </returns>
public IWebhook Webhook { get; } public IWebhook Webhook { get; }

View File

@@ -329,7 +329,7 @@ namespace Discord.Rest
/// invalid characters as defined by <see cref="System.IO.Path.GetInvalidPathChars"/>. /// invalid characters as defined by <see cref="System.IO.Path.GetInvalidPathChars"/>.
/// </exception> /// </exception>
/// <exception cref="ArgumentNullException"> /// <exception cref="ArgumentNullException">
/// <paramref name="filePath" /> is <c>null</c>. /// <paramref name="filePath" /> is <see langword="null" />.
/// </exception> /// </exception>
/// <exception cref="PathTooLongException"> /// <exception cref="PathTooLongException">
/// The specified path, file name, or both exceed the system-defined maximum length. For example, on /// The specified path, file name, or both exceed the system-defined maximum length. For example, on

View File

@@ -35,7 +35,7 @@ namespace Discord.Rest
/// <param name="options">The options to be used when sending the request.</param> /// <param name="options">The options to be used when sending the request.</param>
/// <returns> /// <returns>
/// A task that represents an asynchronous get operation for retrieving the message. The task result contains /// A task that represents an asynchronous get operation for retrieving the message. The task result contains
/// the retrieved message; <c>null</c> if no message is found with the specified identifier. /// the retrieved message; <see langword="null" /> if no message is found with the specified identifier.
/// </returns> /// </returns>
Task<RestMessage> GetMessageAsync(ulong id, RequestOptions options = null); Task<RestMessage> GetMessageAsync(ulong id, RequestOptions options = null);
/// <summary> /// <summary>

View File

@@ -64,7 +64,7 @@ namespace Discord.Rest
/// </summary> /// </summary>
/// <param name="id">The snowflake identifier of the user.</param> /// <param name="id">The snowflake identifier of the user.</param>
/// <returns> /// <returns>
/// A <see cref="RestUser"/> object that is a recipient of this channel; otherwise <c>null</c>. /// A <see cref="RestUser"/> object that is a recipient of this channel; otherwise <see langword="null" />.
/// </returns> /// </returns>
public RestUser GetUser(ulong id) public RestUser GetUser(ulong id)
{ {
@@ -107,7 +107,7 @@ namespace Discord.Rest
/// invalid characters as defined by <see cref="System.IO.Path.GetInvalidPathChars"/>. /// invalid characters as defined by <see cref="System.IO.Path.GetInvalidPathChars"/>.
/// </exception> /// </exception>
/// <exception cref="ArgumentNullException"> /// <exception cref="ArgumentNullException">
/// <paramref name="filePath" /> is <c>null</c>. /// <paramref name="filePath" /> is <see langword="null" />.
/// </exception> /// </exception>
/// <exception cref="PathTooLongException"> /// <exception cref="PathTooLongException">
/// The specified path, file name, or both exceed the system-defined maximum length. For example, on /// The specified path, file name, or both exceed the system-defined maximum length. For example, on

View File

@@ -117,7 +117,7 @@ namespace Discord.Rest
/// invalid characters as defined by <see cref="System.IO.Path.GetInvalidPathChars"/>. /// invalid characters as defined by <see cref="System.IO.Path.GetInvalidPathChars"/>.
/// </exception> /// </exception>
/// <exception cref="ArgumentNullException"> /// <exception cref="ArgumentNullException">
/// <paramref name="filePath" /> is <c>null</c>. /// <paramref name="filePath" /> is <see langword="null" />.
/// </exception> /// </exception>
/// <exception cref="PathTooLongException"> /// <exception cref="PathTooLongException">
/// The specified path, file name, or both exceed the system-defined maximum length. For example, on /// The specified path, file name, or both exceed the system-defined maximum length. For example, on

View File

@@ -90,7 +90,7 @@ namespace Discord.Rest
/// </summary> /// </summary>
/// <param name="user">The user to get the overwrite from.</param> /// <param name="user">The user to get the overwrite from.</param>
/// <returns> /// <returns>
/// An overwrite object for the targeted user; <c>null</c> if none is set. /// An overwrite object for the targeted user; <see langword="null" /> if none is set.
/// </returns> /// </returns>
public virtual OverwritePermissions? GetPermissionOverwrite(IUser user) public virtual OverwritePermissions? GetPermissionOverwrite(IUser user)
{ {
@@ -107,7 +107,7 @@ namespace Discord.Rest
/// </summary> /// </summary>
/// <param name="role">The role to get the overwrite from.</param> /// <param name="role">The role to get the overwrite from.</param>
/// <returns> /// <returns>
/// An overwrite object for the targeted role; <c>null</c> if none is set. /// An overwrite object for the targeted role; <see langword="null" /> if none is set.
/// </returns> /// </returns>
public virtual OverwritePermissions? GetPermissionOverwrite(IRole role) public virtual OverwritePermissions? GetPermissionOverwrite(IRole role)
{ {

View File

@@ -76,7 +76,7 @@ namespace Discord.Rest
/// </exception> /// </exception>
/// <returns> /// <returns>
/// A task representing the asynchronous get operation. The task result contains a guild user object that /// A task representing the asynchronous get operation. The task result contains a guild user object that
/// represents the user; <c>null</c> if none is found. /// represents the user; <see langword="null" /> if none is found.
/// </returns> /// </returns>
public Task<RestGuildUser> GetUserAsync(ulong id, RequestOptions options = null) public Task<RestGuildUser> GetUserAsync(ulong id, RequestOptions options = null)
=> ChannelHelper.GetUserAsync(this, Guild, Discord, id, options); => ChannelHelper.GetUserAsync(this, Guild, Discord, id, options);
@@ -127,7 +127,7 @@ namespace Discord.Rest
/// invalid characters as defined by <see cref="System.IO.Path.GetInvalidPathChars"/>. /// invalid characters as defined by <see cref="System.IO.Path.GetInvalidPathChars"/>.
/// </exception> /// </exception>
/// <exception cref="ArgumentNullException"> /// <exception cref="ArgumentNullException">
/// <paramref name="filePath" /> is <c>null</c>. /// <paramref name="filePath" /> is <see langword="null" />.
/// </exception> /// </exception>
/// <exception cref="PathTooLongException"> /// <exception cref="PathTooLongException">
/// The specified path, file name, or both exceed the system-defined maximum length. For example, on /// The specified path, file name, or both exceed the system-defined maximum length. For example, on
@@ -227,7 +227,7 @@ namespace Discord.Rest
/// <param name="options">The options to be used when sending the request.</param> /// <param name="options">The options to be used when sending the request.</param>
/// <returns> /// <returns>
/// A task that represents the asynchronous get operation. The task result contains a webhook associated /// A task that represents the asynchronous get operation. The task result contains a webhook associated
/// with the identifier; <c>null</c> if the webhook is not found. /// with the identifier; <see langword="null" /> if the webhook is not found.
/// </returns> /// </returns>
public virtual Task<RestWebhook> GetWebhookAsync(ulong id, RequestOptions options = null) public virtual Task<RestWebhook> GetWebhookAsync(ulong id, RequestOptions options = null)
=> ChannelHelper.GetWebhookAsync(this, Discord, id, options); => ChannelHelper.GetWebhookAsync(this, Discord, id, options);
@@ -280,7 +280,7 @@ namespace Discord.Rest
/// <param name="options">The options to be used when sending the request.</param> /// <param name="options">The options to be used when sending the request.</param>
/// <returns> /// <returns>
/// A task that represents the asynchronous get operation. The task result contains the category channel /// A task that represents the asynchronous get operation. The task result contains the category channel
/// representing the parent of this channel; <c>null</c> if none is set. /// representing the parent of this channel; <see langword="null" /> if none is set.
/// </returns> /// </returns>
public virtual Task<ICategoryChannel> GetCategoryAsync(RequestOptions options = null) public virtual Task<ICategoryChannel> GetCategoryAsync(RequestOptions options = null)
=> ChannelHelper.GetCategoryAsync(this, Discord, options); => ChannelHelper.GetCategoryAsync(this, Discord, options);

View File

@@ -16,7 +16,7 @@ namespace Discord.Rest
internal static class GuildHelper internal static class GuildHelper
{ {
#region General #region General
/// <exception cref="ArgumentNullException"><paramref name="func"/> is <c>null</c>.</exception> /// <exception cref="ArgumentNullException"><paramref name="func"/> is <see langword="null" />.</exception>
public static async Task<Model> ModifyAsync(IGuild guild, BaseDiscordClient client, public static async Task<Model> ModifyAsync(IGuild guild, BaseDiscordClient client,
Action<GuildProperties> func, RequestOptions options) Action<GuildProperties> func, RequestOptions options)
{ {
@@ -90,7 +90,7 @@ namespace Discord.Rest
return await client.ApiClient.ModifyGuildAsync(guild.Id, apiArgs, options).ConfigureAwait(false); return await client.ApiClient.ModifyGuildAsync(guild.Id, apiArgs, options).ConfigureAwait(false);
} }
/// <exception cref="ArgumentNullException"><paramref name="func"/> is <c>null</c>.</exception> /// <exception cref="ArgumentNullException"><paramref name="func"/> is <see langword="null" />.</exception>
public static async Task<WidgetModel> ModifyWidgetAsync(IGuild guild, BaseDiscordClient client, public static async Task<WidgetModel> ModifyWidgetAsync(IGuild guild, BaseDiscordClient client,
Action<GuildWidgetProperties> func, RequestOptions options) Action<GuildWidgetProperties> func, RequestOptions options)
{ {
@@ -230,7 +230,7 @@ namespace Discord.Rest
var models = await client.ApiClient.GetGuildChannelsAsync(guild.Id, options).ConfigureAwait(false); var models = await client.ApiClient.GetGuildChannelsAsync(guild.Id, options).ConfigureAwait(false);
return models.Select(x => RestGuildChannel.Create(client, guild, x)).ToImmutableArray(); return models.Select(x => RestGuildChannel.Create(client, guild, x)).ToImmutableArray();
} }
/// <exception cref="ArgumentNullException"><paramref name="name"/> is <c>null</c>.</exception> /// <exception cref="ArgumentNullException"><paramref name="name"/> is <see langword="null" />.</exception>
public static async Task<RestTextChannel> CreateTextChannelAsync(IGuild guild, BaseDiscordClient client, public static async Task<RestTextChannel> CreateTextChannelAsync(IGuild guild, BaseDiscordClient client,
string name, RequestOptions options, Action<TextChannelProperties> func = null) string name, RequestOptions options, Action<TextChannelProperties> func = null)
{ {
@@ -261,7 +261,7 @@ namespace Discord.Rest
var model = await client.ApiClient.CreateGuildChannelAsync(guild.Id, args, options).ConfigureAwait(false); var model = await client.ApiClient.CreateGuildChannelAsync(guild.Id, args, options).ConfigureAwait(false);
return RestTextChannel.Create(client, guild, model); return RestTextChannel.Create(client, guild, model);
} }
/// <exception cref="ArgumentNullException"><paramref name="name"/> is <c>null</c>.</exception> /// <exception cref="ArgumentNullException"><paramref name="name"/> is <see langword="null" />.</exception>
public static async Task<RestVoiceChannel> CreateVoiceChannelAsync(IGuild guild, BaseDiscordClient client, public static async Task<RestVoiceChannel> CreateVoiceChannelAsync(IGuild guild, BaseDiscordClient client,
string name, RequestOptions options, Action<VoiceChannelProperties> func = null) string name, RequestOptions options, Action<VoiceChannelProperties> func = null)
{ {
@@ -320,7 +320,7 @@ namespace Discord.Rest
var model = await client.ApiClient.CreateGuildChannelAsync(guild.Id, args, options).ConfigureAwait(false); var model = await client.ApiClient.CreateGuildChannelAsync(guild.Id, args, options).ConfigureAwait(false);
return RestStageChannel.Create(client, guild, model); return RestStageChannel.Create(client, guild, model);
} }
/// <exception cref="ArgumentNullException"><paramref name="name"/> is <c>null</c>.</exception> /// <exception cref="ArgumentNullException"><paramref name="name"/> is <see langword="null" />.</exception>
public static async Task<RestCategoryChannel> CreateCategoryChannelAsync(IGuild guild, BaseDiscordClient client, public static async Task<RestCategoryChannel> CreateCategoryChannelAsync(IGuild guild, BaseDiscordClient client,
string name, RequestOptions options, Action<GuildChannelProperties> func = null) string name, RequestOptions options, Action<GuildChannelProperties> func = null)
{ {
@@ -348,7 +348,7 @@ namespace Discord.Rest
return RestCategoryChannel.Create(client, guild, model); return RestCategoryChannel.Create(client, guild, model);
} }
/// <exception cref="ArgumentNullException"><paramref name="name"/> is <c>null</c>.</exception> /// <exception cref="ArgumentNullException"><paramref name="name"/> is <see langword="null" />.</exception>
public static async Task<RestForumChannel> CreateForumChannelAsync(IGuild guild, BaseDiscordClient client, public static async Task<RestForumChannel> CreateForumChannelAsync(IGuild guild, BaseDiscordClient client,
string name, RequestOptions options, Action<ForumChannelProperties> func = null) string name, RequestOptions options, Action<ForumChannelProperties> func = null)
{ {
@@ -466,7 +466,7 @@ namespace Discord.Rest
#endregion #endregion
#region Roles #region Roles
/// <exception cref="ArgumentNullException"><paramref name="name"/> is <c>null</c>.</exception> /// <exception cref="ArgumentNullException"><paramref name="name"/> is <see langword="null" />.</exception>
public static async Task<RestRole> CreateRoleAsync(IGuild guild, BaseDiscordClient client, public static async Task<RestRole> CreateRoleAsync(IGuild guild, BaseDiscordClient client,
string name, GuildPermissions? permissions, Color? color, bool isHoisted, bool isMentionable, RequestOptions options) string name, GuildPermissions? permissions, Color? color, bool isHoisted, bool isMentionable, RequestOptions options)
{ {
@@ -685,7 +685,7 @@ namespace Discord.Rest
var emote = await client.ApiClient.CreateGuildEmoteAsync(guild.Id, apiargs, options).ConfigureAwait(false); var emote = await client.ApiClient.CreateGuildEmoteAsync(guild.Id, apiargs, options).ConfigureAwait(false);
return emote.ToEntity(); return emote.ToEntity();
} }
/// <exception cref="ArgumentNullException"><paramref name="func"/> is <c>null</c>.</exception> /// <exception cref="ArgumentNullException"><paramref name="func"/> is <see langword="null" />.</exception>
public static async Task<GuildEmote> ModifyEmoteAsync(IGuild guild, BaseDiscordClient client, ulong id, Action<EmoteProperties> func, public static async Task<GuildEmote> ModifyEmoteAsync(IGuild guild, BaseDiscordClient client, ulong id, Action<EmoteProperties> func,
RequestOptions options) RequestOptions options)
{ {

View File

@@ -873,7 +873,7 @@ namespace Discord.Rest
/// This method removes all users that have not logged on in the provided number of <paramref name="days"/>. /// This method removes all users that have not logged on in the provided number of <paramref name="days"/>.
/// </para> /// </para>
/// <para> /// <para>
/// If <paramref name="simulate" /> is <c>true</c>, this method will only return the number of users that /// If <paramref name="simulate" /> is <see langword="true" />, this method will only return the number of users that
/// would be removed without kicking the users. /// would be removed without kicking the users.
/// </para> /// </para>
/// </remarks> /// </remarks>

View File

@@ -102,7 +102,7 @@ namespace Discord.WebSocket
/// <remarks> /// <remarks>
/// This method gets the user present in the WebSocket cache with the given condition. /// This method gets the user present in the WebSocket cache with the given condition.
/// <note type="warning"> /// <note type="warning">
/// Sometimes a user may return <c>null</c> due to Discord not sending offline users in large guilds /// Sometimes a user may return <see langword="null" /> due to Discord not sending offline users in large guilds
/// (i.e. guild with 100+ members) actively. To download users on startup and to see more information /// (i.e. guild with 100+ members) actively. To download users on startup and to see more information
/// about this subject, see <see cref="Discord.WebSocket.DiscordSocketConfig.AlwaysDownloadUsers" />. /// about this subject, see <see cref="Discord.WebSocket.DiscordSocketConfig.AlwaysDownloadUsers" />.
/// </note> /// </note>
@@ -114,7 +114,7 @@ namespace Discord.WebSocket
/// </note> /// </note>
/// </remarks> /// </remarks>
/// <returns> /// <returns>
/// A generic WebSocket-based user; <c>null</c> when the user cannot be found. /// A generic WebSocket-based user; <see langword="null" /> when the user cannot be found.
/// </returns> /// </returns>
public abstract SocketUser GetUser(ulong id); public abstract SocketUser GetUser(ulong id);
@@ -124,7 +124,7 @@ namespace Discord.WebSocket
/// <remarks> /// <remarks>
/// This method gets the user present in the WebSocket cache with the given condition. /// This method gets the user present in the WebSocket cache with the given condition.
/// <note type="warning"> /// <note type="warning">
/// Sometimes a user may return <c>null</c> due to Discord not sending offline users in large guilds /// Sometimes a user may return <see langword="null" /> due to Discord not sending offline users in large guilds
/// (i.e. guild with 100+ members) actively. To download users on startup and to see more information /// (i.e. guild with 100+ members) actively. To download users on startup and to see more information
/// about this subject, see <see cref="Discord.WebSocket.DiscordSocketConfig.AlwaysDownloadUsers" />. /// about this subject, see <see cref="Discord.WebSocket.DiscordSocketConfig.AlwaysDownloadUsers" />.
/// </note> /// </note>
@@ -138,7 +138,7 @@ namespace Discord.WebSocket
/// <param name="username">The name of the user.</param> /// <param name="username">The name of the user.</param>
/// <param name="discriminator">The discriminator value of the user.</param> /// <param name="discriminator">The discriminator value of the user.</param>
/// <returns> /// <returns>
/// A generic WebSocket-based user; <c>null</c> when the user cannot be found. /// A generic WebSocket-based user; <see langword="null" /> when the user cannot be found.
/// </returns> /// </returns>
public abstract SocketUser GetUser(string username, string discriminator); public abstract SocketUser GetUser(string username, string discriminator);
/// <summary> /// <summary>
@@ -147,7 +147,7 @@ namespace Discord.WebSocket
/// <param name="id">The snowflake identifier of the channel (e.g. `381889909113225237`).</param> /// <param name="id">The snowflake identifier of the channel (e.g. `381889909113225237`).</param>
/// <returns> /// <returns>
/// A generic WebSocket-based channel object (voice, text, category, etc.) associated with the identifier; /// A generic WebSocket-based channel object (voice, text, category, etc.) associated with the identifier;
/// <c>null</c> when the channel cannot be found. /// <see langword="null" /> when the channel cannot be found.
/// </returns> /// </returns>
public abstract SocketChannel GetChannel(ulong id); public abstract SocketChannel GetChannel(ulong id);
/// <summary> /// <summary>
@@ -155,7 +155,7 @@ namespace Discord.WebSocket
/// </summary> /// </summary>
/// <param name="id">The guild snowflake identifier.</param> /// <param name="id">The guild snowflake identifier.</param>
/// <returns> /// <returns>
/// A WebSocket-based guild associated with the snowflake identifier; <c>null</c> when the guild cannot be /// A WebSocket-based guild associated with the snowflake identifier; <see langword="null" /> when the guild cannot be
/// found. /// found.
/// </returns> /// </returns>
public abstract SocketGuild GetGuild(ulong id); public abstract SocketGuild GetGuild(ulong id);
@@ -173,7 +173,7 @@ namespace Discord.WebSocket
/// <param name="id">The identifier of the voice region (e.g. <c>eu-central</c> ).</param> /// <param name="id">The identifier of the voice region (e.g. <c>eu-central</c> ).</param>
/// <param name="options">The options to be used when sending the request.</param> /// <param name="options">The options to be used when sending the request.</param>
/// <returns> /// <returns>
/// A task that contains a REST-based voice region associated with the identifier; <c>null</c> if the /// A task that contains a REST-based voice region associated with the identifier; <see langword="null" /> if the
/// voice region is not found. /// voice region is not found.
/// </returns> /// </returns>
public abstract ValueTask<RestVoiceRegion> GetVoiceRegionAsync(string id, RequestOptions options = null); public abstract ValueTask<RestVoiceRegion> GetVoiceRegionAsync(string id, RequestOptions options = null);

View File

@@ -390,7 +390,7 @@ namespace Discord.WebSocket
/// <param name="options">The options to be used when sending the request.</param> /// <param name="options">The options to be used when sending the request.</param>
/// <returns> /// <returns>
/// A task that represents the asynchronous get operation. The task result contains the channel associated /// A task that represents the asynchronous get operation. The task result contains the channel associated
/// with the snowflake identifier; <c>null</c> when the channel cannot be found. /// with the snowflake identifier; <see langword="null" /> when the channel cannot be found.
/// </returns> /// </returns>
public async ValueTask<IChannel> GetChannelAsync(ulong id, RequestOptions options = null) public async ValueTask<IChannel> GetChannelAsync(ulong id, RequestOptions options = null)
=> GetChannel(id) ?? (IChannel)await ClientHelper.GetChannelAsync(this, id, options).ConfigureAwait(false); => GetChannel(id) ?? (IChannel)await ClientHelper.GetChannelAsync(this, id, options).ConfigureAwait(false);
@@ -408,7 +408,7 @@ namespace Discord.WebSocket
/// <param name="options">The options to be used when sending the request.</param> /// <param name="options">The options to be used when sending the request.</param>
/// <returns> /// <returns>
/// A task that represents the asynchronous get operation. The task result contains the user associated with /// A task that represents the asynchronous get operation. The task result contains the user associated with
/// the snowflake identifier; <c>null</c> if the user is not found. /// the snowflake identifier; <see langword="null" /> if the user is not found.
/// </returns> /// </returns>
public async ValueTask<IUser> GetUserAsync(ulong id, RequestOptions options = null) public async ValueTask<IUser> GetUserAsync(ulong id, RequestOptions options = null)
=> await ((IDiscordClient)this).GetUserAsync(id, CacheMode.AllowDownload, options).ConfigureAwait(false); => await ((IDiscordClient)this).GetUserAsync(id, CacheMode.AllowDownload, options).ConfigureAwait(false);

View File

@@ -31,7 +31,7 @@ namespace Discord.WebSocket
public const string GatewayEncoding = "json"; public const string GatewayEncoding = "json";
/// <summary> /// <summary>
/// Gets or sets the WebSocket host to connect to. If <c>null</c>, the client will use the /// Gets or sets the WebSocket host to connect to. If <see langword="null" />, the client will use the
/// /gateway endpoint. /// /gateway endpoint.
/// </summary> /// </summary>
public string GatewayHost { get; set; } = null; public string GatewayHost { get; set; } = null;
@@ -136,7 +136,7 @@ namespace Discord.WebSocket
/// <summary> /// <summary>
/// Gets or sets the timeout for event handlers, in milliseconds, after which a warning will be logged. /// Gets or sets the timeout for event handlers, in milliseconds, after which a warning will be logged.
/// Setting this property to <c>null</c>disables this check. /// Setting this property to <see langword="null" />disables this check.
/// </summary> /// </summary>
public int? HandlerTimeout { get; set; } = 3000; public int? HandlerTimeout { get; set; } = 3000;

Some files were not shown because too many files have changed in this diff Show More