Fix typos in comments and documentation (#2608)
* Fix typos in comments and documentations * Fixes more typo
This commit is contained in:
@@ -2382,7 +2382,7 @@ namespace Discord.WebSocket
|
||||
channel = CreateDMChannel(data.ChannelId.Value, user, State);
|
||||
}
|
||||
|
||||
// The channel isnt required when responding to an interaction, so we can leave the channel null.
|
||||
// The channel isn't required when responding to an interaction, so we can leave the channel null.
|
||||
}
|
||||
}
|
||||
else if (data.User.IsSpecified)
|
||||
|
||||
@@ -59,7 +59,7 @@ namespace Discord.WebSocket
|
||||
/// Gets or sets whether or not the client should download the default stickers on startup.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// When this is set to <see langword="false"/> default stickers arn't present and cannot be resolved by the client.
|
||||
/// When this is set to <see langword="false"/> default stickers aren't present and cannot be resolved by the client.
|
||||
/// This will make all default stickers have the type of <see cref="SocketUnknownSticker"/>.
|
||||
/// </remarks>
|
||||
public bool AlwaysDownloadDefaultStickers { get; set; } = false;
|
||||
|
||||
@@ -202,7 +202,7 @@ namespace Discord.WebSocket
|
||||
/// <returns>A task representing the download operation.</returns>
|
||||
public async Task<IReadOnlyCollection<SocketThreadUser>> GetUsersAsync(RequestOptions options = null)
|
||||
{
|
||||
// download all users if we havent
|
||||
// download all users if we haven't
|
||||
if (!_usersDownloaded)
|
||||
{
|
||||
await DownloadUsersAsync(options);
|
||||
|
||||
@@ -1212,7 +1212,7 @@ namespace Discord.WebSocket
|
||||
/// Gets a collection of all users in this guild.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>This method retrieves all users found within this guild throught REST.</para>
|
||||
/// <para>This method retrieves all users found within this guild through REST.</para>
|
||||
/// <para>Users returned by this method are not cached.</para>
|
||||
/// </remarks>
|
||||
/// <param name="options">The options to be used when sending the request.</param>
|
||||
@@ -2128,7 +2128,7 @@ namespace Discord.WebSocket
|
||||
_audioLock?.Dispose();
|
||||
_audioClient?.Dispose();
|
||||
}
|
||||
|
||||
|
||||
/// <inheritdoc/>
|
||||
async Task<IAutoModRule> IGuild.GetAutoModRuleAsync(ulong ruleId, RequestOptions options)
|
||||
=> await GetAutoModRuleAsync(ruleId, options).ConfigureAwait(false);
|
||||
|
||||
@@ -401,7 +401,7 @@ namespace Discord.WebSocket
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// Attepts to get the channel this interaction was executed in.
|
||||
/// Attempts to get the channel this interaction was executed in.
|
||||
/// </summary>
|
||||
/// <param name="options">The request options for this <see langword="async"/> request.</param>
|
||||
/// <returns>
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace Discord.Interactions
|
||||
public SocketUser User { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the <see cref="SocketInteraction"/> the command was recieved with.
|
||||
/// Gets the <see cref="SocketInteraction"/> the command was received with.
|
||||
/// </summary>
|
||||
public TInteraction Interaction { get; }
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace Discord.Interactions
|
||||
public IReadOnlyCollection<IRouteSegmentMatch> SegmentMatches { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new <see cref="SocketInteractionContext{TInteraction}"/>.
|
||||
/// Initializes a new <see cref="SocketInteractionContext{TInteraction}"/>.
|
||||
/// </summary>
|
||||
/// <param name="client">The underlying client.</param>
|
||||
/// <param name="interaction">The underlying interaction.</param>
|
||||
@@ -85,7 +85,7 @@ namespace Discord.Interactions
|
||||
public class SocketInteractionContext : SocketInteractionContext<SocketInteraction>
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new <see cref="SocketInteractionContext"/>
|
||||
/// Initializes a new <see cref="SocketInteractionContext"/>
|
||||
/// </summary>
|
||||
/// <param name="client">The underlying client</param>
|
||||
/// <param name="interaction">The underlying interaction</param>
|
||||
|
||||
Reference in New Issue
Block a user