diff --git a/docs/guides/entities/casting.md b/docs/guides/entities/casting.md index a4cbdf8ce..3a314c67f 100644 --- a/docs/guides/entities/casting.md +++ b/docs/guides/entities/casting.md @@ -10,7 +10,7 @@ Casting only works for types that inherit the base type that you want to unbox f `IUser` cannot be cast to `IMessage`. > [!NOTE] -> Interfaces **can** be cast to other interfaces, as long as they inherit eachother. +> Interfaces **can** be cast to other interfaces, as long as they inherit each other. > The same goes for reverse casting. As long as some entity can be simplified into what it inherits, your cast will pass. ## Boxing @@ -35,7 +35,7 @@ it will become said type, and its properties can be accessed. [!code-csharp[Casting](samples/casting.cs)] > [!WARNING] -> If the type you're casting to is null, a `NullReferenceException` will be thrown when its called. +> If the type you're casting to is null, a `NullReferenceException` will be thrown when it's called. > This makes safety casting much more interesting to use, as it prevents this exception from being thrown. ## Safety casting diff --git a/docs/guides/entities/glossary.md b/docs/guides/entities/glossary.md index f49a05775..4ac6dd593 100644 --- a/docs/guides/entities/glossary.md +++ b/docs/guides/entities/glossary.md @@ -54,8 +54,8 @@ exist under a category. ![IMessageChart](images/IMessage.png) * A **Rest Followup Message** ([RestFollowupMessage]) is a message returned by followup on on an interaction. -* A **Rest Interaction Message** ([RestInteractionMessage]) is a message returned by the interactions' original response. -* A **Rest User Message** ([RestUserMessage]) is a message sent over rest, can be any of the above. +* A **Rest Interaction Message** ([RestInteractionMessage]) is a message returned by the interaction's original response. +* A **Rest User Message** ([RestUserMessage]) is a message sent over rest; it can be any of the above. * An **User Message** ([IUserMessage]) is a message sent by a user. * A **System Message** ([ISystemMessage]) is a message sent by Discord itself. * A **Message** ([IMessage]) can be any of the above. diff --git a/docs/guides/entities/images/IUser.png b/docs/guides/entities/images/IUser.png index 55f46e17f..ae4a969c8 100644 Binary files a/docs/guides/entities/images/IUser.png and b/docs/guides/entities/images/IUser.png differ diff --git a/docs/guides/entities/samples/casting.cs b/docs/guides/entities/samples/casting.cs index 9b52650c6..0a7b9d16e 100644 --- a/docs/guides/entities/samples/casting.cs +++ b/docs/guides/entities/samples/casting.cs @@ -1,4 +1,4 @@ -// Say we have an entity, for the simplicity of this example, it will appear from thin air. +// Say we have an entity; for the simplicity of this example, it will appear from thin air. IChannel channel; // If we want this to be an ITextChannel so we can access the properties of a text channel inside of a guild, an approach would be: diff --git a/docs/guides/entities/samples/restentities.cs b/docs/guides/entities/samples/restentities.cs index 0e40f068a..36a817780 100644 --- a/docs/guides/entities/samples/restentities.cs +++ b/docs/guides/entities/samples/restentities.cs @@ -1,4 +1,4 @@ -// RestUser entities expose the accentcolor and banner of a user. +// RestUser entities expose the accent color and banner of a user. // This being one of the few use-cases for requesting a RestUser instead of depending on the Socket counterpart. public static EmbedBuilder WithUserColor(this EmbedBuilder builder, IUser user) { diff --git a/docs/guides/entities/samples/safety-cast-pass.cs b/docs/guides/entities/samples/safety-cast-pass.cs index 1ac047e38..03407746f 100644 --- a/docs/guides/entities/samples/safety-cast-pass.cs +++ b/docs/guides/entities/samples/safety-cast-pass.cs @@ -4,7 +4,7 @@ private void MyFunction(IMessage message) if (message is not IUserMessage userMessage) return; - // Because we do the above check inline (dont give the statement a body), + // Because we do the above check inline (don't give the statement a body), // the code will still declare `userMessage` as available outside of the above statement. Console.WriteLine(userMessage.Author); } diff --git a/docs/guides/entities/samples/safety-cast-var.cs b/docs/guides/entities/samples/safety-cast-var.cs index 812865a94..bf62a2095 100644 --- a/docs/guides/entities/samples/safety-cast-var.cs +++ b/docs/guides/entities/samples/safety-cast-var.cs @@ -1,7 +1,7 @@ IUser user; // Here we can pre-define the actual declaration of said IGuildUser object, -// so we dont need to cast additionally inside of the statement. +// so we don't need to cast additionally inside of the statement. if (user is IGuildUser guildUser) { Console.WriteLine(guildUser.JoinedAt); diff --git a/samples/BasicBot/Program.cs b/samples/BasicBot/Program.cs index 71a6605a6..179dfce05 100644 --- a/samples/BasicBot/Program.cs +++ b/samples/BasicBot/Program.cs @@ -6,7 +6,7 @@ using Discord.WebSocket; namespace BasicBot { - // This is a minimal, bare-bones example of using Discord.Net + // This is a minimal, bare-bones example of using Discord.Net. // // If writing a bot with commands/interactions, we recommend using the Discord.Net.Commands/Discord.Net.Interactions // framework, rather than handling them yourself, like we do in this sample.