diff --git a/docs/faq/build_overrides/what-are-they.md b/docs/faq/build_overrides/what-are-they.md index f76fd6ddb..0b9ca699d 100644 --- a/docs/faq/build_overrides/what-are-they.md +++ b/docs/faq/build_overrides/what-are-they.md @@ -9,7 +9,7 @@ Build overrides are a way for library developers to override the default behavio ## Installing the package -The build override package can be installed on nuget [here](TODO) or by using the package manager +The build override package can be installed on nuget [here](https://www.nuget.org/packages/Discord.Net.BuildOverrides) or by using the package manager ``` PM> Install-Package Discord.Net.BuildOverrides @@ -21,7 +21,7 @@ PM> Install-Package Discord.Net.BuildOverrides public async Task MainAsync() { // hook into the log function - BuildOverrides.Log += (buildOverride, message) => + BuildOverrides.Log += (buildOverride, message) => { Console.WriteLine($"{buildOverride.Name}: {message}"); return Task.CompletedTask; @@ -37,5 +37,5 @@ Overrides are normally built for specific problems, for example if someone is ha ## Security and Transparency -Overrides can only be created and updated by library developers, you should only apply an override if a library developer askes you to. -Code for the overrides server and the overrides themselves can be found [here](https://github.com/discord-net/Discord.Net.BuildOverrides). \ No newline at end of file +Overrides can only be created and updated by library developers, you should only apply an override if a library developer asks you to. +Code for the overrides server and the overrides themselves can be found [here](https://github.com/discord-net/Discord.Net.BuildOverrides). diff --git a/docs/faq/int_framework/general.md b/docs/faq/int_framework/general.md index af574edb6..ca380ef2c 100644 --- a/docs/faq/int_framework/general.md +++ b/docs/faq/int_framework/general.md @@ -13,12 +13,12 @@ as well as users that register and handle commands manually. The difference between these 3 functions is in how you handle the command response. [RespondAsync] and -[DeferAsync] let the API know you have succesfully received the command. This is also called 'acknowledging' a command. +[DeferAsync] let the API know you have successfully received the command. This is also called 'acknowledging' a command. DeferAsync will not send out a response, RespondAsync will. -[FollowupAsync] follows up on succesful acknowledgement. +[FollowupAsync] follows up on successful acknowledgement. > [!WARNING] -> If you have not acknowledged the command FollowupAsync will not work! the interaction has not been resonded to, so you cannot follow it up! +> If you have not acknowledged the command FollowupAsync will not work! the interaction has not been responded to, so you cannot follow it up! [RespondAsync]: xref:Discord.IDiscordInteraction [DeferAsync]: xref:Discord.IDiscordInteraction diff --git a/docs/guides/dependency_injection/injection.md b/docs/guides/dependency_injection/injection.md index 85a77476f..087ff2df6 100644 --- a/docs/guides/dependency_injection/injection.md +++ b/docs/guides/dependency_injection/injection.md @@ -26,7 +26,7 @@ Injecting through properties is also allowed as follows. > [!WARNING] > Dependency Injection will not resolve missing services in property injection, and it will not pick a constructor instead. -> If a publically accessible property is attempted to be injected and its service is missing, the application will throw an error. +> If a publicly accessible property is attempted to be injected and its service is missing, the application will throw an error. ## Using the provider itself diff --git a/docs/guides/dependency_injection/scaling.md b/docs/guides/dependency_injection/scaling.md index 356fb7c72..a360eab48 100644 --- a/docs/guides/dependency_injection/scaling.md +++ b/docs/guides/dependency_injection/scaling.md @@ -3,7 +3,7 @@ uid: Guides.DI.Scaling title: Scaling your DI --- -# Scaling your DI +# Scaling your DI Dependency injection has a lot of use cases, and is very suitable for scaled applications. There are a few ways to make registering & using services easier in large amounts. diff --git a/docs/guides/entities/casting.md b/docs/guides/entities/casting.md index 3a314c67f..37d084c43 100644 --- a/docs/guides/entities/casting.md +++ b/docs/guides/entities/casting.md @@ -18,7 +18,7 @@ Casting only works for types that inherit the base type that you want to unbox f A boxed object is the definition of an object that was simplified (or trimmed) by incoming traffic, but still owns the data of the originally constructed type. Boxing is an implicit operation. -Through casting, we can **unbox** this type, and access the properties that were unaccessible before. +Through casting, we can **unbox** this type, and access the properties that were inaccessible before. ## Unboxing diff --git a/docs/guides/entities/glossary.md b/docs/guides/entities/glossary.md index 447ce4450..709bc96df 100644 --- a/docs/guides/entities/glossary.md +++ b/docs/guides/entities/glossary.md @@ -87,8 +87,8 @@ exist under a category. ![IInteractionChart](images/IInteraction.png) * A **Slash command** ([ISlashCommandInteraction]) is an application command executed in the text box, with provided parameters. -* A **Message Command** ([IMessageCommandInteraction]) is an application command targetting a message. -* An **User Command** ([IUserCommandInteraction]) is an application command targetting a user. +* A **Message Command** ([IMessageCommandInteraction]) is an application command targeting a message. +* An **User Command** ([IUserCommandInteraction]) is an application command targeting a user. * An **Application Command** ([IApplicationCommandInteraction]) is any of the above. * A **Message component** ([IMessageComponent]) is the interaction of a button being clicked/dropdown option(s) entered. * An **Autocomplete Interaction** ([IAutocompleteinteraction]) is an interaction that has been automatically completed. diff --git a/docs/guides/guild_events/creating-guild-events.md b/docs/guides/guild_events/creating-guild-events.md index 64ac0de9b..2b5d8985a 100644 --- a/docs/guides/guild_events/creating-guild-events.md +++ b/docs/guides/guild_events/creating-guild-events.md @@ -28,4 +28,4 @@ var guild = client.GetGuild(guildId); var guildEvent = await guild.CreateEventAsync("test event", DateTimeOffset.UtcNow.AddDays(1), GuildScheduledEventType.External, endTime: DateTimeOffset.UtcNow.AddDays(2), location: "Space"); ``` -This code will create an event that lasts a day and starts tomorrow. It will be an external event thats in space. +This code will create an event that lasts a day and starts tomorrow. It will be an external event that's in space. diff --git a/docs/guides/int_framework/intro.md b/docs/guides/int_framework/intro.md index 4bee07e94..89c55a743 100644 --- a/docs/guides/int_framework/intro.md +++ b/docs/guides/int_framework/intro.md @@ -107,7 +107,7 @@ By default, your methods can feature the following parameter types: | `IVoiceChannel` | Voice Channels | | `IDMChannel` | DM Channels | | `IGroupChannel` | Group Channels | -| `ICategory Channel` | Category Channels | +| `ICategoryChannel` | Category Channels | | `INewsChannel` | News Channels | | `IThreadChannel` | Public, Private, News Threads | | `ITextChannel` | Text Channels | @@ -200,7 +200,7 @@ And the captured words will be passed on to the command method in the same order You may use as many wild card characters as you want. > [!NOTE] -> If Interaction Service recieves a component interaction with **player:play,rickroll** custom id, +> If Interaction Service receives a component interaction with **player:play,rickroll** custom id, > `op` will be *play* and `name` will be *rickroll* ## Select Menus @@ -233,9 +233,9 @@ A Modal implementation would look like this: [!code-csharp[Modal Command](samples/intro/modal.cs)] > [!NOTE] -> If you are using Modals in the interaction service it is **highly +> If you are using Modals in the interaction service it is **highly > recommended** that you enable `PreCompiledLambdas` in your config -> to prevent performance issues. +> to prevent performance issues. ## Interaction Context @@ -262,7 +262,7 @@ One problem with using the concrete type InteractionContexts is that you cannot > [!INFO] > Message component interactions have access to a special method called `UpdateAsync()` to update the body of the method the interaction originated from. -> Normally this wouldn't be accessable without casting the `Context.Interaction`. +> Normally this wouldn't be accessible without casting the `Context.Interaction`. [!code-csharp[Context Example](samples/intro/context.cs)] @@ -291,7 +291,7 @@ Module groups allow you to create sub-commands and sub-commands groups. By nesting commands inside a module that is tagged with [GroupAttribute] you can create prefixed commands. > [!WARNING] -> Although creating nested module stuctures are allowed, +> Although creating nested module structures are allowed, > you are not permitted to use more than 2 [GroupAttribute]'s in module hierarchy. > [!NOTE] @@ -318,7 +318,7 @@ An example of executing a command from an event can be seen here: [!code-csharp[Command Event Example](samples/intro/event.cs)] -Commands can be either executed on the gateway thread or on a seperate thread from the thread pool. +Commands can be either executed on the gateway thread or on a separate thread from the thread pool. This behaviour can be configured by changing the `RunMode` property of `InteractionServiceConfig` or by setting the *runMode* parameter of a command attribute. > [!WARNING] @@ -354,12 +354,12 @@ can be used to register cherry picked modules or commands to global/guild scopes > [!NOTE] > In debug environment, since Global commands can take up to 1 hour to register/update, -> it is adviced to register your commands to a test guild for your changes to take effect immediately. +> it is advised to register your commands to a test guild for your changes to take effect immediately. > You can use preprocessor directives to create a simple logic for registering commands as seen above. ## Interaction Utility -Interaction Service ships with a static `InteractionUtiliy` +Interaction Service ships with a static `InteractionUtility` class which contains some helper methods to asynchronously waiting for Discord Interactions. For instance, `WaitForInteractionAsync()` method allows you to wait for an Interaction for a given amount of time. This method returns the first encountered Interaction that satisfies the provided predicate. @@ -370,7 +370,7 @@ This method returns the first encountered Interaction that satisfies the provide ## Webhook Based Interactions -Instead of using the gateway to recieve Discord Interactions, Discord allows you to recieve Interaction events over Webhooks. +Instead of using the gateway to receive Discord Interactions, Discord allows you to receive Interaction events over Webhooks. Interaction Service also supports this Interaction type but to be able to respond to the Interactions within your command modules you need to perform the following: diff --git a/docs/guides/int_framework/post-execution.md b/docs/guides/int_framework/post-execution.md index 70da8ad1e..4cc39668e 100644 --- a/docs/guides/int_framework/post-execution.md +++ b/docs/guides/int_framework/post-execution.md @@ -32,7 +32,7 @@ Interaction Result come in a handful of different flavours: > [!NOTE] > You can either use the [IResult.Error] property of an Interaction result or create type check for the -> afformentioned result types to branch out your post-execution logic to handle different situations. +> aforementioned result types to branch out your post-execution logic to handle different situations. [AutocompletionResult]: xref:Discord.AutocompleteResult diff --git a/docs/guides/text_commands/intro.md b/docs/guides/text_commands/intro.md index 429bfc3a0..08d8730bb 100644 --- a/docs/guides/text_commands/intro.md +++ b/docs/guides/text_commands/intro.md @@ -9,8 +9,8 @@ title: Introduction to the Chat Command Service command parser. > [!IMPORTANT] -> The 'Message Content' intent, required for text commands, is now a -> privilleged intent. Please use [Slash commands](xref:Guides.SlashCommands.Intro) +> The 'Message Content' intent, required for text commands, is now a +> privileged intent. Please use [Slash commands](xref:Guides.SlashCommands.Intro) > instead for making commands. For more information about this change > please check [this announcement made by discord](https://support-dev.discord.com/hc/en-us/articles/4404772028055-Message-Content-Privileged-Intent-FAQ) diff --git a/docs/guides/voice/sending-voice.md b/docs/guides/voice/sending-voice.md index 36184e3a3..1bae0e101 100644 --- a/docs/guides/voice/sending-voice.md +++ b/docs/guides/voice/sending-voice.md @@ -17,7 +17,7 @@ bot. (When developing on .NET Framework, this would be `bin/debug`, when developing on .NET Core, this is where you execute `dotnet run` from; typically the same directory as your csproj). -**For Windows users, precompiled binaries are available for your convienence [here](https://github.com/discord-net/Discord.Net/tree/dev/voice-natives).** +**For Windows users, precompiled binaries are available for your convenience [here](https://github.com/discord-net/Discord.Net/tree/dev/voice-natives).** **For Linux users, you will need to compile [Sodium] and [Opus] from source, or install them from your package manager.** diff --git a/experiment/Discord.Net.BuildOverrides/BuildOverrides.cs b/experiment/Discord.Net.BuildOverrides/BuildOverrides.cs index 4e47ca2b6..914689800 100644 --- a/experiment/Discord.Net.BuildOverrides/BuildOverrides.cs +++ b/experiment/Discord.Net.BuildOverrides/BuildOverrides.cs @@ -69,7 +69,7 @@ namespace Discord public sealed class LoadedOverride { /// - /// Gets the aseembly containing the overrides definition. + /// Gets the assembly containing the overrides definition. /// public Assembly Assembly { get; internal set; } @@ -119,7 +119,7 @@ namespace Discord /// Gets details about a specific override. /// /// - /// Note: This method does not load an override, it simply retrives the info about it. + /// Note: This method does not load an override, it simply retrieves the info about it. /// /// The name of the override to get. /// @@ -147,12 +147,12 @@ namespace Discord /// Adds an override to the current Discord.Net instance. /// /// - /// The override initialization is non-blocking, any errors that occor within + /// The override initialization is non-blocking, any errors that occur within /// the overrides initialization procedure will be sent in the event. /// /// The name of the override to add. /// - /// A task representing the asynchronous add operaton. The tasks result is a boolean + /// A task representing the asynchronous add operation. The tasks result is a boolean /// determining if the add operation was successful. /// public static async Task AddOverrideAsync(string name) @@ -169,12 +169,12 @@ namespace Discord /// Adds an override to the current Discord.Net instance. /// /// - /// The override initialization is non-blocking, any errors that occor within + /// The override initialization is non-blocking, any errors that occur within /// the overrides initialization procedure will be sent in the event. /// /// The override to add. /// - /// A task representing the asynchronous add operaton. The tasks result is a boolean + /// A task representing the asynchronous add operation. The tasks result is a boolean /// determining if the add operation was successful. /// public static async Task AddOverrideAsync(Override ovrride) diff --git a/experiment/Discord.Net.BuildOverrides/OverrideContext.cs b/experiment/Discord.Net.BuildOverrides/OverrideContext.cs index 1e88be74a..0d683f9ca 100644 --- a/experiment/Discord.Net.BuildOverrides/OverrideContext.cs +++ b/experiment/Discord.Net.BuildOverrides/OverrideContext.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; namespace Discord.Overrides { /// - /// Represents context thats passed to an override in the initialization step. + /// Represents context that's passed to an override in the initialization step. /// public sealed class OverrideContext { diff --git a/samples/BasicBot/Program.cs b/samples/BasicBot/Program.cs index 64c7a915d..01462770f 100644 --- a/samples/BasicBot/Program.cs +++ b/samples/BasicBot/Program.cs @@ -90,7 +90,7 @@ namespace BasicBot if (message.Content == "!ping") { - // Create a new componentbuilder, in which dropdowns & buttons can be created. + // Create a new ComponentBuilder, in which dropdowns & buttons can be created. var cb = new ComponentBuilder() .WithButton("Click me!", "unique-id", ButtonStyle.Primary); diff --git a/samples/InteractionFramework/Modules/ExampleModule.cs b/samples/InteractionFramework/Modules/ExampleModule.cs index 50156f10c..38cc4120b 100644 --- a/samples/InteractionFramework/Modules/ExampleModule.cs +++ b/samples/InteractionFramework/Modules/ExampleModule.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; namespace InteractionFramework.Modules { - // Interation modules must be public and inherit from an IInterationModuleBase + // Interaction modules must be public and inherit from an IInteractionModuleBase public class ExampleModule : InteractionModuleBase { // Dependencies can be accessed through Property injection, public properties with public setters will be set by the service provider diff --git a/src/Discord.Net.Commands/CommandService.cs b/src/Discord.Net.Commands/CommandService.cs index 515c2343d..b57886b9a 100644 --- a/src/Discord.Net.Commands/CommandService.cs +++ b/src/Discord.Net.Commands/CommandService.cs @@ -589,7 +589,7 @@ namespace Discord.Commands var executeResult = await matchResult.Match.Value.ExecuteAsync(context, parseResult, services); - if (!executeResult.IsSuccess && !(executeResult is RuntimeResult || executeResult is ExecuteResult)) // succesful results raise the event in CommandInfo#ExecuteInternalAsync (have to raise it there b/c deffered execution) + if (!executeResult.IsSuccess && !(executeResult is RuntimeResult || executeResult is ExecuteResult)) // successful results raise the event in CommandInfo#ExecuteInternalAsync (have to raise it there b/c deferred execution) await _commandExecutedEvent.InvokeAsync(matchResult.Match.Value.Command, context, executeResult); return executeResult; } diff --git a/src/Discord.Net.Commands/IModuleBase.cs b/src/Discord.Net.Commands/IModuleBase.cs index 7a953b47b..e736298ab 100644 --- a/src/Discord.Net.Commands/IModuleBase.cs +++ b/src/Discord.Net.Commands/IModuleBase.cs @@ -17,19 +17,19 @@ namespace Discord.Commands /// /// Executed asynchronously before a command is run in this module base. /// - /// The command thats about to run. + /// The command that's about to run. Task BeforeExecuteAsync(CommandInfo command); /// /// Executed before a command is run in this module base. /// - /// The command thats about to run. + /// The command that's about to run. void BeforeExecute(CommandInfo command); /// /// Executed asynchronously after a command is run in this module base. /// - /// The command thats about to run. + /// The command that's about to run. Task AfterExecuteAsync(CommandInfo command); /// diff --git a/src/Discord.Net.Core/DiscordConfig.cs b/src/Discord.Net.Core/DiscordConfig.cs index 46ca1c50c..78acbd3e6 100644 --- a/src/Discord.Net.Core/DiscordConfig.cs +++ b/src/Discord.Net.Core/DiscordConfig.cs @@ -9,12 +9,12 @@ namespace Discord /// public class DiscordConfig { - /// - /// Returns the API version Discord.Net uses. + /// + /// Returns the API version Discord.Net uses. /// /// /// An representing the API version that Discord.Net uses to communicate with Discord. - /// A list of available API version can be seen on the official + /// A list of available API version can be seen on the official /// Discord API documentation /// . /// @@ -53,14 +53,14 @@ namespace Discord /// The Discord API URL using . /// public static readonly string APIUrl = $"https://discord.com/api/v{APIVersion}/"; - /// - /// Returns the base Discord CDN URL. + /// + /// Returns the base Discord CDN URL. /// /// /// The base Discord Content Delivery Network (CDN) URL. /// public const string CDNUrl = "https://cdn.discordapp.com/"; - /// + /// /// Returns the base Discord invite URL. /// /// @@ -68,28 +68,28 @@ namespace Discord /// public const string InviteUrl = "https://discord.gg/"; - /// - /// Returns the default timeout for requests. + /// + /// Returns the default timeout for requests. /// /// /// The amount of time it takes in milliseconds before a request is timed out. /// public const int DefaultRequestTimeout = 15000; - /// - /// Returns the max length for a Discord message. + /// + /// Returns the max length for a Discord message. /// /// /// The maximum length of a message allowed by Discord. /// public const int MaxMessageSize = 2000; - /// - /// Returns the max messages allowed to be in a request. + /// + /// Returns the max messages allowed to be in a request. /// /// /// The maximum number of messages that can be gotten per-batch. /// public const int MaxMessagesPerBatch = 100; - /// + /// /// Returns the max users allowed to be in a request. /// /// @@ -110,8 +110,8 @@ namespace Discord /// The maximum number of users that can be gotten per-batch. /// public const int MaxGuildEventUsersPerBatch = 100; - /// - /// Returns the max guilds allowed to be in a request. + /// + /// Returns the max guilds allowed to be in a request. /// /// /// The maximum number of guilds that can be gotten per-batch. @@ -124,8 +124,8 @@ namespace Discord /// The maximum number of user reactions that can be gotten per-batch. /// public const int MaxUserReactionsPerBatch = 100; - /// - /// Returns the max audit log entries allowed to be in a request. + /// + /// Returns the max audit log entries allowed to be in a request. /// /// /// The maximum number of audit log entries that can be gotten per-batch. @@ -194,7 +194,7 @@ namespace Discord public bool UseSystemClock { get; set; } = true; /// - /// Gets or sets whether or not the internal experation check uses the system date + /// Gets or sets whether or not the internal expiration check uses the system date /// + snowflake date to check if an interaction can be responded to. /// /// @@ -215,8 +215,8 @@ namespace Discord /// public bool FormatUsersInBidirectionalUnicode { get; set; } = true; - /// - /// Returns the max thread members allowed to be in a request. + /// + /// Returns the max thread members allowed to be in a request. /// /// /// The maximum number of thread members that can be gotten per-batch. diff --git a/src/Discord.Net.Core/Entities/Guilds/ExplicitContentFilterLevel.cs b/src/Discord.Net.Core/Entities/Guilds/ExplicitContentFilterLevel.cs index 54c0bdafe..19057b961 100644 --- a/src/Discord.Net.Core/Entities/Guilds/ExplicitContentFilterLevel.cs +++ b/src/Discord.Net.Core/Entities/Guilds/ExplicitContentFilterLevel.cs @@ -5,7 +5,7 @@ namespace Discord /// No messages will be scanned. Disabled = 0, /// Scans messages from all guild members that do not have a role. - /// Recommented option for servers that use roles for trusted membership. + /// Recommended option for servers that use roles for trusted membership. MembersWithoutRoles = 1, /// Scan messages sent by all guild members. AllMembers = 2 diff --git a/src/Discord.Net.Core/Entities/Guilds/IGuildScheduledEvent.cs b/src/Discord.Net.Core/Entities/Guilds/IGuildScheduledEvent.cs index 7219682b7..9cd891607 100644 --- a/src/Discord.Net.Core/Entities/Guilds/IGuildScheduledEvent.cs +++ b/src/Discord.Net.Core/Entities/Guilds/IGuildScheduledEvent.cs @@ -35,7 +35,7 @@ namespace Discord /// Gets the description of the event. /// /// - /// This field is when the event doesn't have a discription. + /// This field is when the event doesn't have a description. /// string Description { get; } @@ -71,7 +71,7 @@ namespace Discord /// /// Gets the optional entity id of the event. The "entity" of the event - /// can be a stage instance event as is seperate from . + /// can be a stage instance event as is separate from . /// ulong? EntityId { get; } @@ -102,7 +102,7 @@ namespace Discord /// Task StartAsync(RequestOptions options = null); /// - /// Ends or canceles the event. + /// Ends or cancels the event. /// /// The options to be used when sending the request. /// @@ -134,7 +134,7 @@ namespace Discord /// /// /// - /// The returned collection is an asynchronous enumerable object; one must call + /// The returned collection is an asynchronous enumerable object; one must call /// to access the individual messages as a /// collection. /// @@ -155,7 +155,7 @@ namespace Discord /// /// /// - /// The returned collection is an asynchronous enumerable object; one must call + /// The returned collection is an asynchronous enumerable object; one must call /// to access the individual users as a /// collection. /// @@ -165,7 +165,7 @@ namespace Discord /// /// This method will attempt to fetch the number of users specified under around /// the user depending on the . The library will - /// attempt to split up the requests according to your and + /// attempt to split up the requests according to your and /// . In other words, should the user request 500 users, /// and the constant is 100, the request will /// be split into 5 individual requests; thus returning 5 individual asynchronous responses, hence the need diff --git a/src/Discord.Net.Core/Entities/Interactions/MessageComponents/TextInputComponent.cs b/src/Discord.Net.Core/Entities/Interactions/MessageComponents/TextInputComponent.cs index 5a1352209..e2da1132c 100644 --- a/src/Discord.Net.Core/Entities/Interactions/MessageComponents/TextInputComponent.cs +++ b/src/Discord.Net.Core/Entities/Interactions/MessageComponents/TextInputComponent.cs @@ -1,7 +1,7 @@ namespace Discord { /// - /// Respresents a text input. + /// Represents a text input. /// public class TextInputComponent : IMessageComponent { @@ -17,7 +17,7 @@ namespace Discord public string Label { get; } /// - /// Gets the placeholder of the component. + /// Gets the placeholder of the component. /// public string Placeholder { get; } diff --git a/src/Discord.Net.Core/Entities/Interactions/SlashCommands/SlashCommandProperties.cs b/src/Discord.Net.Core/Entities/Interactions/SlashCommands/SlashCommandProperties.cs index 20ba2868f..d790e8fb0 100644 --- a/src/Discord.Net.Core/Entities/Interactions/SlashCommands/SlashCommandProperties.cs +++ b/src/Discord.Net.Core/Entities/Interactions/SlashCommands/SlashCommandProperties.cs @@ -10,7 +10,7 @@ namespace Discord internal override ApplicationCommandType Type => ApplicationCommandType.Slash; /// - /// Gets or sets the discription of this command. + /// Gets or sets the description of this command. /// public Optional Description { get; set; } diff --git a/src/Discord.Net.Core/Entities/Messages/EmbedBuilder.cs b/src/Discord.Net.Core/Entities/Messages/EmbedBuilder.cs index 33d97654b..797cea2a4 100644 --- a/src/Discord.Net.Core/Entities/Messages/EmbedBuilder.cs +++ b/src/Discord.Net.Core/Entities/Messages/EmbedBuilder.cs @@ -161,11 +161,11 @@ namespace Discord } /// - /// Tries to parse a string into an . + /// Tries to parse a string into an . /// /// The json string to parse. /// The with populated values. An empty instance if method returns . - /// if was succesfully parsed. if not. + /// if was successfully parsed. if not. public static bool TryParse(string json, out EmbedBuilder builder) { builder = new EmbedBuilder(); diff --git a/src/Discord.Net.Core/Entities/Permissions/ApplicationCommandPermissions.cs b/src/Discord.Net.Core/Entities/Permissions/ApplicationCommandPermissions.cs index a5819fefe..3c25fe3d9 100644 --- a/src/Discord.Net.Core/Entities/Permissions/ApplicationCommandPermissions.cs +++ b/src/Discord.Net.Core/Entities/Permissions/ApplicationCommandPermissions.cs @@ -99,7 +99,7 @@ namespace Discord /// Id of the target guild. /// The value of this permission. /// - /// Instance of targeting everychannel in a guild. + /// Instance of targeting every channel in a guild. /// public static ApplicationCommandPermission ForAllChannels(ulong guildId, bool allow) => new(guildId - 1, ApplicationCommandPermissionTarget.Channel, allow); @@ -110,7 +110,7 @@ namespace Discord /// Target guild. /// The value of this permission. /// - /// Instance of targeting everychannel in a guild. + /// Instance of targeting every channel in a guild. /// public static ApplicationCommandPermission ForAllChannels(IGuild guild, bool allow) => ForAllChannels(guild.Id, allow); diff --git a/src/Discord.Net.Core/Entities/Users/IConnection.cs b/src/Discord.Net.Core/Entities/Users/IConnection.cs index 94b23a4b5..124f32ec0 100644 --- a/src/Discord.Net.Core/Entities/Users/IConnection.cs +++ b/src/Discord.Net.Core/Entities/Users/IConnection.cs @@ -33,7 +33,7 @@ namespace Discord /// bool? IsRevoked { get; } /// - /// Gets a of integration parials. + /// Gets a of integration partials. /// IReadOnlyCollection Integrations { get; } /// diff --git a/src/Discord.Net.Core/Format.cs b/src/Discord.Net.Core/Format.cs index 38998fc18..3e39f8c1c 100644 --- a/src/Discord.Net.Core/Format.cs +++ b/src/Discord.Net.Core/Format.cs @@ -111,7 +111,7 @@ namespace Discord /// Formats a user's username + discriminator. /// /// To format the string in bidirectional unicode or not - /// The user whos username and discriminator to format + /// The user whose username and discriminator to format /// The username + discriminator public static string UsernameAndDiscriminator(IUser user, bool doBidirectional) { diff --git a/src/Discord.Net.Interactions/Attributes/Modals/RequiredInputAttribute.cs b/src/Discord.Net.Interactions/Attributes/Modals/RequiredInputAttribute.cs index e3cab3340..1f580ff00 100644 --- a/src/Discord.Net.Interactions/Attributes/Modals/RequiredInputAttribute.cs +++ b/src/Discord.Net.Interactions/Attributes/Modals/RequiredInputAttribute.cs @@ -14,7 +14,7 @@ namespace Discord.Interactions public bool IsRequired { get; } /// - /// Sets the input as required or optinal. + /// Sets the input as required or optional. /// /// Whether or not user input is required for this input. public RequiredInputAttribute(bool isRequired = true) diff --git a/src/Discord.Net.Interactions/Builders/Commands/CommandBuilder.cs b/src/Discord.Net.Interactions/Builders/Commands/CommandBuilder.cs index 2826f9679..4a63e1fe9 100644 --- a/src/Discord.Net.Interactions/Builders/Commands/CommandBuilder.cs +++ b/src/Discord.Net.Interactions/Builders/Commands/CommandBuilder.cs @@ -23,7 +23,7 @@ namespace Discord.Interactions.Builders /// public ModuleBuilder Module { get; } - //// + /// public ExecuteCallback Callback { get; internal set; } /// diff --git a/src/Discord.Net.Interactions/Builders/Parameters/IParameterBuilder.cs b/src/Discord.Net.Interactions/Builders/Parameters/IParameterBuilder.cs index 46f5cefcb..a11f7226d 100644 --- a/src/Discord.Net.Interactions/Builders/Parameters/IParameterBuilder.cs +++ b/src/Discord.Net.Interactions/Builders/Parameters/IParameterBuilder.cs @@ -34,7 +34,7 @@ namespace Discord.Interactions.Builders bool IsParameterArray { get; } /// - /// Gets the deafult value of this parameter. + /// Gets the default value of this parameter. /// object DefaultValue { get; } diff --git a/src/Discord.Net.Interactions/Info/ICommandInfo.cs b/src/Discord.Net.Interactions/Info/ICommandInfo.cs index fd5c74210..869707e11 100644 --- a/src/Discord.Net.Interactions/Info/ICommandInfo.cs +++ b/src/Discord.Net.Interactions/Info/ICommandInfo.cs @@ -26,7 +26,7 @@ namespace Discord.Interactions bool IgnoreGroupNames { get; } /// - /// Gets wheter this command supports wild card patterns. + /// Gets whether this command supports wild card patterns. /// bool SupportsWildCards { get; } diff --git a/src/Discord.Net.Interactions/Info/ModalInfo.cs b/src/Discord.Net.Interactions/Info/ModalInfo.cs index de6c0ddf2..bef789ac9 100644 --- a/src/Discord.Net.Interactions/Info/ModalInfo.cs +++ b/src/Discord.Net.Interactions/Info/ModalInfo.cs @@ -95,8 +95,8 @@ namespace Discord.Interactions /// Creates an and fills it with provided message components. /// /// Context of the that will be injected into the modal. - /// Services to be passed onto the s of the modal fiels. - /// Wheter or not this method should exit on encountering a missing modal field. + /// Services to be passed onto the s of the modal fields. + /// Whether or not this method should exit on encountering a missing modal field. /// /// A if a type conversion has failed, else a . /// diff --git a/src/Discord.Net.Interactions/Info/Parameters/SlashCommandParameterInfo.cs b/src/Discord.Net.Interactions/Info/Parameters/SlashCommandParameterInfo.cs index 0bce42186..84cc61baa 100644 --- a/src/Discord.Net.Interactions/Info/Parameters/SlashCommandParameterInfo.cs +++ b/src/Discord.Net.Interactions/Info/Parameters/SlashCommandParameterInfo.cs @@ -34,7 +34,7 @@ namespace Discord.Interactions public double? MinValue { get; } /// - /// Gets the maxmimum value permitted for a number type parameter. + /// Gets the maximum value permitted for a number type parameter. /// public double? MaxValue { get; } @@ -55,7 +55,7 @@ namespace Discord.Interactions public TypeConverter TypeConverter { get; } /// - /// Gets the thats linked to this parameter. + /// Gets the that's linked to this parameter. /// public IAutocompleteHandler AutocompleteHandler { get; } diff --git a/src/Discord.Net.Interactions/InteractionService.cs b/src/Discord.Net.Interactions/InteractionService.cs index ae78564bd..b957bc2d9 100644 --- a/src/Discord.Net.Interactions/InteractionService.cs +++ b/src/Discord.Net.Interactions/InteractionService.cs @@ -19,7 +19,7 @@ namespace Discord.Interactions public class InteractionService : IDisposable { /// - /// Occurs when a Slash Command related information is recieved. + /// Occurs when a Slash Command related information is received. /// public event Func Log { add { _logEvent.Add(value); } remove { _logEvent.Remove(value); } } internal readonly AsyncEvent> _logEvent = new(); diff --git a/src/Discord.Net.Interactions/InteractionServiceConfig.cs b/src/Discord.Net.Interactions/InteractionServiceConfig.cs index b9102bc5f..12706c2dd 100644 --- a/src/Discord.Net.Interactions/InteractionServiceConfig.cs +++ b/src/Discord.Net.Interactions/InteractionServiceConfig.cs @@ -24,7 +24,7 @@ namespace Discord.Interactions public bool ThrowOnError { get; set; } = true; /// - /// Gets or sets the delimiters that will be used to seperate group names and the method name when a Message Component Interaction is recieved. + /// Gets or sets the delimiters that will be used to separate group names and the method name when a Message Component Interaction is received. /// public char[] InteractionCustomIdDelimiters { get; set; } @@ -51,7 +51,7 @@ namespace Discord.Interactions public bool EnableAutocompleteHandlers { get; set; } = true; /// - /// Gets or sets whether new service scopes should be automatically created when resolving module depedencies on every command execution. + /// Gets or sets whether new service scopes should be automatically created when resolving module dependencies on every command execution. /// public bool AutoServiceScopes { get; set; } = true; diff --git a/src/Discord.Net.Interactions/LocalizationManagers/ILocalizationManager.cs b/src/Discord.Net.Interactions/LocalizationManagers/ILocalizationManager.cs index 13b155292..9af518ee0 100644 --- a/src/Discord.Net.Interactions/LocalizationManagers/ILocalizationManager.cs +++ b/src/Discord.Net.Interactions/LocalizationManagers/ILocalizationManager.cs @@ -5,7 +5,7 @@ using System.Threading.Tasks; namespace Discord.Interactions { /// - /// Respresents a localization provider for Discord Application Commands. + /// Represents a localization provider for Discord Application Commands. /// public interface ILocalizationManager { diff --git a/src/Discord.Net.Interactions/Results/TypeConverterResult.cs b/src/Discord.Net.Interactions/Results/TypeConverterResult.cs index c97e44c4e..bef8f3067 100644 --- a/src/Discord.Net.Interactions/Results/TypeConverterResult.cs +++ b/src/Discord.Net.Interactions/Results/TypeConverterResult.cs @@ -8,7 +8,7 @@ namespace Discord.Interactions public struct TypeConverterResult : IResult { /// - /// Gets the result of the convertion if the operation was successful. + /// Gets the result of the conversion if the operation was successful. /// public object Value { get; } @@ -37,7 +37,7 @@ namespace Discord.Interactions /// /// Returns a with and the . /// - /// The exception that caused the type convertion to fail. + /// The exception that caused the type conversion to fail. public static TypeConverterResult FromError(Exception exception) => new TypeConverterResult(null, InteractionCommandError.Exception, exception.Message); diff --git a/src/Discord.Net.Interactions/TypeConverters/ComponentInteractions/ComponentTypeConverter.cs b/src/Discord.Net.Interactions/TypeConverters/ComponentInteractions/ComponentTypeConverter.cs index e406d4a26..cb5ff7e3c 100644 --- a/src/Discord.Net.Interactions/TypeConverters/ComponentInteractions/ComponentTypeConverter.cs +++ b/src/Discord.Net.Interactions/TypeConverters/ComponentInteractions/ComponentTypeConverter.cs @@ -20,8 +20,8 @@ namespace Discord.Interactions /// /// Will be used to read the incoming payload before executing the method body. /// - /// Command exexution context. - /// Recieved option payload. + /// Command execution context. + /// Received option payload. /// Service provider that will be used to initialize the command module. /// /// The result of the read process. diff --git a/src/Discord.Net.Interactions/TypeConverters/SlashCommands/EnumConverter.cs b/src/Discord.Net.Interactions/TypeConverters/SlashCommands/EnumConverter.cs index 186098365..c46b5a2d2 100644 --- a/src/Discord.Net.Interactions/TypeConverters/SlashCommands/EnumConverter.cs +++ b/src/Discord.Net.Interactions/TypeConverters/SlashCommands/EnumConverter.cs @@ -45,7 +45,7 @@ namespace Discord.Interactions /// Enum values tagged with this attribute will not be displayed as a parameter choice /// /// - /// This attributer must be used along with the default + /// This attribute must be used along with the default /// [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] public sealed class HideAttribute : Attribute { } diff --git a/src/Discord.Net.Interactions/TypeConverters/SlashCommands/TypeConverter.cs b/src/Discord.Net.Interactions/TypeConverters/SlashCommands/TypeConverter.cs index 09cbc56d4..e09501183 100644 --- a/src/Discord.Net.Interactions/TypeConverters/SlashCommands/TypeConverter.cs +++ b/src/Discord.Net.Interactions/TypeConverters/SlashCommands/TypeConverter.cs @@ -24,8 +24,8 @@ namespace Discord.Interactions /// /// Will be used to read the incoming payload before executing the method body. /// - /// Command exexution context. - /// Recieved option payload. + /// Command execution context. + /// Received option payload. /// Service provider that will be used to initialize the command module. /// The result of the read process. public abstract Task ReadAsync(IInteractionContext context, IApplicationCommandInteractionDataOption option, IServiceProvider services); diff --git a/src/Discord.Net.Interactions/Utilities/InteractionUtility.cs b/src/Discord.Net.Interactions/Utilities/InteractionUtility.cs index 99af408e9..9b9eed286 100644 --- a/src/Discord.Net.Interactions/Utilities/InteractionUtility.cs +++ b/src/Discord.Net.Interactions/Utilities/InteractionUtility.cs @@ -11,14 +11,14 @@ namespace Discord.Interactions public static class InteractionUtility { /// - /// Wait for an Interaction event for a given amount of time as an asynchronous opration. + /// Wait for an Interaction event for a given amount of time as an asynchronous operation. /// /// Client that should be listened to for the event. /// Timeout duration for this operation. - /// Delegate for cheking whether an Interaction meets the requirements. + /// Delegate for checking whether an Interaction meets the requirements. /// Token for canceling the wait operation. /// - /// A Task representing the asyncronous waiting operation. If the user responded in the given amount of time, Task result contains the user response, + /// A Task representing the asynchronous waiting operation. If the user responded in the given amount of time, Task result contains the user response, /// otherwise the Task result is . /// public static async Task WaitForInteractionAsync(BaseSocketClient client, TimeSpan timeout, @@ -55,14 +55,14 @@ namespace Discord.Interactions } /// - /// Wait for an Message Component Interaction event for a given amount of time as an asynchronous opration . + /// Wait for an Message Component Interaction event for a given amount of time as an asynchronous operation . /// /// Client that should be listened to for the event. /// The message that or should originate from. /// Timeout duration for this operation. /// Token for canceling the wait operation. /// - /// A Task representing the asyncronous waiting operation with a result, + /// A Task representing the asynchronous waiting operation with a result, /// the result is null if the process timed out before receiving a valid Interaction. /// public static Task WaitForMessageComponentAsync(BaseSocketClient client, IUserMessage fromMessage, TimeSpan timeout, @@ -83,7 +83,7 @@ namespace Discord.Interactions /// Optional custom prompt message. /// Token for canceling the wait operation. /// - /// A Task representing the asyncronous waiting operation with a result, + /// A Task representing the asynchronous waiting operation with a result, /// the result is if the user declined the prompt or didnt answer in time, if the user confirmed the prompt. /// public static async Task ConfirmAsync(BaseSocketClient client, IMessageChannel channel, TimeSpan timeout, string message = null, diff --git a/src/Discord.Net.Interactions/Utilities/RegexUtils.cs b/src/Discord.Net.Interactions/Utilities/RegexUtils.cs index 8f07be66a..e028dd43b 100644 --- a/src/Discord.Net.Interactions/Utilities/RegexUtils.cs +++ b/src/Discord.Net.Interactions/Utilities/RegexUtils.cs @@ -8,19 +8,19 @@ namespace System.Text.RegularExpressions internal static class RegexUtils { internal const byte Q = 5; // quantifier - internal const byte S = 4; // ordinary stoppper + internal const byte S = 4; // ordinary stopper internal const byte Z = 3; // ScanBlank stopper internal const byte X = 2; // whitespace internal const byte E = 1; // should be escaped internal static readonly byte[] _category = new byte[] { - // 0 1 2 3 4 5 6 7 8 9 A B C D E F 0 1 2 3 4 5 6 7 8 9 A B C D E F + // 0 1 2 3 4 5 6 7 8 9 A B C D E F 0 1 2 3 4 5 6 7 8 9 A B C D E F 0,0,0,0,0,0,0,0,0,X,X,0,X,X,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - // ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? + // ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? X,0,0,Z,S,0,0,0,S,S,Q,Q,0,0,S,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,Q, // @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ] ^ _ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,S,S,0,S,0, - // ' a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~ + // ' a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,Q,S,0,0,0}; internal static string EscapeExcluding(string input, params char[] exclude) diff --git a/src/Discord.Net.Rest/DiscordRestApiClient.cs b/src/Discord.Net.Rest/DiscordRestApiClient.cs index 23328ba24..fbe3ffd2c 100644 --- a/src/Discord.Net.Rest/DiscordRestApiClient.cs +++ b/src/Discord.Net.Rest/DiscordRestApiClient.cs @@ -2328,7 +2328,7 @@ namespace Discord.API .Append(args.ActionType.Value); } - // Still use string interp for the query w/o params, as this is necessary for CreateBucketId + // Still use string interpolation for the query w/o params, as this is necessary for CreateBucketId endpoint = () => $"guilds/{guildId}/audit-logs?limit={limit}{queryArgs.ToString()}"; return await SendAsync("GET", endpoint, ids, options: options).ConfigureAwait(false); } diff --git a/src/Discord.Net.Rest/Entities/AuditLogs/DataTypes/ScheduledEventDeleteAuditLogData.cs b/src/Discord.Net.Rest/Entities/AuditLogs/DataTypes/ScheduledEventDeleteAuditLogData.cs index d89103488..875026046 100644 --- a/src/Discord.Net.Rest/Entities/AuditLogs/DataTypes/ScheduledEventDeleteAuditLogData.cs +++ b/src/Discord.Net.Rest/Entities/AuditLogs/DataTypes/ScheduledEventDeleteAuditLogData.cs @@ -7,7 +7,7 @@ using Model = Discord.API.AuditLog; namespace Discord.Rest { /// - /// Contains a piece of audit log data related to a scheduled event deleteion. + /// Contains a piece of audit log data related to a scheduled event deletion. /// public class ScheduledEventDeleteAuditLogData : IAuditLogData { diff --git a/src/Discord.Net.Rest/Interactions/RestInteractionContext.cs b/src/Discord.Net.Rest/Interactions/RestInteractionContext.cs index d407f5103..57f72c2c5 100644 --- a/src/Discord.Net.Rest/Interactions/RestInteractionContext.cs +++ b/src/Discord.Net.Rest/Interactions/RestInteractionContext.cs @@ -35,7 +35,7 @@ namespace Discord.Rest public RestUser User { get; } /// - /// Gets the the command was recieved with. + /// Gets the the command was received with. /// public TInteraction Interaction { get; } @@ -51,7 +51,7 @@ namespace Discord.Rest public IReadOnlyCollection SegmentMatches { get; private set; } /// - /// Initializes a new . + /// Initializes a new . /// /// The underlying client. /// The underlying interaction. @@ -65,7 +65,7 @@ namespace Discord.Rest } /// - /// Initializes a new . + /// Initializes a new . /// /// The underlying client. /// The underlying interaction. @@ -83,7 +83,7 @@ namespace Discord.Rest /// IEnumerable IRouteMatchContainer.SegmentMatches => SegmentMatches; - // IInterationContext + // IInteractionContext /// IDiscordClient IInteractionContext.Client => Client; diff --git a/src/Discord.Net.Rest/Net/ED25519/CryptoBytes.cs b/src/Discord.Net.Rest/Net/ED25519/CryptoBytes.cs index 43cd3f902..2ca064489 100644 --- a/src/Discord.Net.Rest/Net/ED25519/CryptoBytes.cs +++ b/src/Discord.Net.Rest/Net/ED25519/CryptoBytes.cs @@ -9,10 +9,10 @@ namespace Discord.Net.ED25519 { /// /// Comparison of two arrays. - /// + /// /// The runtime of this method does not depend on the contents of the arrays. Using constant time /// prevents timing attacks that allow an attacker to learn if the arrays have a common prefix. - /// + /// /// It is important to use such a constant time comparison when verifying MACs. /// /// Byte array @@ -27,10 +27,10 @@ namespace Discord.Net.ED25519 /// /// Comparison of two array segments. - /// + /// /// The runtime of this method does not depend on the contents of the arrays. Using constant time /// prevents timing attacks that allow an attacker to learn if the arrays have a common prefix. - /// + /// /// It is important to use such a constant time comparison when verifying MACs. /// /// Byte array segment @@ -45,17 +45,17 @@ namespace Discord.Net.ED25519 /// /// Comparison of two byte sequences. - /// + /// /// The runtime of this method does not depend on the contents of the arrays. Using constant time /// prevents timing attacks that allow an attacker to learn if the arrays have a common prefix. - /// + /// /// It is important to use such a constant time comparison when verifying MACs. /// /// Byte array /// Offset of byte sequence in the x array /// Byte array /// Offset of byte sequence in the y array - /// Lengh of byte sequence + /// Length of byte sequence /// True if sequences are equal public static bool ConstantTimeEquals(byte[] x, int xOffset, byte[] y, int yOffset, int length) { @@ -71,7 +71,7 @@ namespace Discord.Net.ED25519 } /// - /// Overwrites the contents of the array, wiping the previous content. + /// Overwrites the contents of the array, wiping the previous content. /// /// Byte array public static void Wipe(byte[] data) @@ -80,7 +80,7 @@ namespace Discord.Net.ED25519 } /// - /// Overwrites the contents of the array, wiping the previous content. + /// Overwrites the contents of the array, wiping the previous content. /// /// Byte array /// Index of byte sequence @@ -91,7 +91,7 @@ namespace Discord.Net.ED25519 } /// - /// Overwrites the contents of the array segment, wiping the previous content. + /// Overwrites the contents of the array segment, wiping the previous content. /// /// Byte array segment public static void Wipe(ArraySegment data) @@ -183,7 +183,7 @@ namespace Discord.Net.ED25519 } /// - /// Encodes the bytes with the Base64 encoding. + /// Encodes the bytes with the Base64 encoding. /// More compact than hex, but it is case-sensitive and uses the special characters `+`, `/` and `=`. /// /// Byte array @@ -247,7 +247,7 @@ namespace Discord.Net.ED25519 /// Byte array public static byte[] Base58Decode(string input) { - // Decode Base58 string to BigInteger + // Decode Base58 string to BigInteger BigInteger intData = 0; for (int i = 0; i < input.Length; i++) { diff --git a/src/Discord.Net.WebSocket/DiscordSocketClient.cs b/src/Discord.Net.WebSocket/DiscordSocketClient.cs index f2091df90..d2543d2b7 100644 --- a/src/Discord.Net.WebSocket/DiscordSocketClient.cs +++ b/src/Discord.Net.WebSocket/DiscordSocketClient.cs @@ -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) diff --git a/src/Discord.Net.WebSocket/DiscordSocketConfig.cs b/src/Discord.Net.WebSocket/DiscordSocketConfig.cs index 4cd64dbc2..4a0d809a5 100644 --- a/src/Discord.Net.WebSocket/DiscordSocketConfig.cs +++ b/src/Discord.Net.WebSocket/DiscordSocketConfig.cs @@ -59,7 +59,7 @@ namespace Discord.WebSocket /// Gets or sets whether or not the client should download the default stickers on startup. /// /// - /// When this is set to default stickers arn't present and cannot be resolved by the client. + /// When this is set to default stickers aren't present and cannot be resolved by the client. /// This will make all default stickers have the type of . /// public bool AlwaysDownloadDefaultStickers { get; set; } = false; diff --git a/src/Discord.Net.WebSocket/Entities/Channels/SocketThreadChannel.cs b/src/Discord.Net.WebSocket/Entities/Channels/SocketThreadChannel.cs index b90779081..3df89d841 100644 --- a/src/Discord.Net.WebSocket/Entities/Channels/SocketThreadChannel.cs +++ b/src/Discord.Net.WebSocket/Entities/Channels/SocketThreadChannel.cs @@ -202,7 +202,7 @@ namespace Discord.WebSocket /// A task representing the download operation. public async Task> GetUsersAsync(RequestOptions options = null) { - // download all users if we havent + // download all users if we haven't if (!_usersDownloaded) { await DownloadUsersAsync(options); diff --git a/src/Discord.Net.WebSocket/Entities/Guilds/SocketGuild.cs b/src/Discord.Net.WebSocket/Entities/Guilds/SocketGuild.cs index abe8cff1f..2f54e6105 100644 --- a/src/Discord.Net.WebSocket/Entities/Guilds/SocketGuild.cs +++ b/src/Discord.Net.WebSocket/Entities/Guilds/SocketGuild.cs @@ -1212,7 +1212,7 @@ namespace Discord.WebSocket /// Gets a collection of all users in this guild. /// /// - /// This method retrieves all users found within this guild throught REST. + /// This method retrieves all users found within this guild through REST. /// Users returned by this method are not cached. /// /// The options to be used when sending the request. @@ -2128,7 +2128,7 @@ namespace Discord.WebSocket _audioLock?.Dispose(); _audioClient?.Dispose(); } - + /// async Task IGuild.GetAutoModRuleAsync(ulong ruleId, RequestOptions options) => await GetAutoModRuleAsync(ruleId, options).ConfigureAwait(false); diff --git a/src/Discord.Net.WebSocket/Entities/Interaction/SocketInteraction.cs b/src/Discord.Net.WebSocket/Entities/Interaction/SocketInteraction.cs index 088e14a27..8a2ee004f 100644 --- a/src/Discord.Net.WebSocket/Entities/Interaction/SocketInteraction.cs +++ b/src/Discord.Net.WebSocket/Entities/Interaction/SocketInteraction.cs @@ -401,7 +401,7 @@ namespace Discord.WebSocket #endregion /// - /// Attepts to get the channel this interaction was executed in. + /// Attempts to get the channel this interaction was executed in. /// /// The request options for this request. /// diff --git a/src/Discord.Net.WebSocket/Interactions/SocketInteractionContext.cs b/src/Discord.Net.WebSocket/Interactions/SocketInteractionContext.cs index a2a101839..f3b744c53 100644 --- a/src/Discord.Net.WebSocket/Interactions/SocketInteractionContext.cs +++ b/src/Discord.Net.WebSocket/Interactions/SocketInteractionContext.cs @@ -34,7 +34,7 @@ namespace Discord.Interactions public SocketUser User { get; } /// - /// Gets the the command was recieved with. + /// Gets the the command was received with. /// public TInteraction Interaction { get; } @@ -42,7 +42,7 @@ namespace Discord.Interactions public IReadOnlyCollection SegmentMatches { get; private set; } /// - /// Initializes a new . + /// Initializes a new . /// /// The underlying client. /// The underlying interaction. @@ -85,7 +85,7 @@ namespace Discord.Interactions public class SocketInteractionContext : SocketInteractionContext { /// - /// Initializes a new + /// Initializes a new /// /// The underlying client /// The underlying interaction diff --git a/test/Discord.Net.Analyzers.Tests/Helpers/DiagnosticVerifier.Helper.cs b/test/Discord.Net.Analyzers.Tests/Helpers/DiagnosticVerifier.Helper.cs index c2f8f12ab..8bf930e68 100644 --- a/test/Discord.Net.Analyzers.Tests/Helpers/DiagnosticVerifier.Helper.cs +++ b/test/Discord.Net.Analyzers.Tests/Helpers/DiagnosticVerifier.Helper.cs @@ -33,7 +33,7 @@ namespace TestHelper #region Get Diagnostics /// - /// Given classes in the form of strings, their language, and an IDiagnosticAnlayzer to apply to it, return the diagnostics found in the string after converting it to a document. + /// Given classes in the form of strings, their language, and an IDiagnosticAnalyzer to apply to it, return the diagnostics found in the string after converting it to a document. /// /// Classes in the form of strings. /// The language the source classes are in. @@ -203,4 +203,3 @@ namespace TestHelper } } } - diff --git a/test/Discord.Net.Tests.Unit/EmbedBuilderTests.cs b/test/Discord.Net.Tests.Unit/EmbedBuilderTests.cs index 83c6ede19..10c057652 100644 --- a/test/Discord.Net.Tests.Unit/EmbedBuilderTests.cs +++ b/test/Discord.Net.Tests.Unit/EmbedBuilderTests.cs @@ -171,7 +171,7 @@ namespace Discord } /// - /// Tests that valid url's do not throw any exceptions. + /// Tests that valid url does not throw any exceptions. /// /// The url to set. [Theory]