diff --git a/docs/_overwrites/Commands/CommandContext.Overwrite.md b/docs/_overwrites/Commands/CommandContext.Overwrite.md index fdde3b2e5..b94388324 100644 --- a/docs/_overwrites/Commands/CommandContext.Overwrite.md +++ b/docs/_overwrites/Commands/CommandContext.Overwrite.md @@ -1,5 +1,6 @@ --- uid: Discord.Commands.CommandContext +example: [*content] --- An example of how this class is used the command system can be seen diff --git a/docs/_overwrites/Commands/CommandException.Overwrite.md b/docs/_overwrites/Commands/CommandException.Overwrite.md index a5a713bcb..166a011de 100644 --- a/docs/_overwrites/Commands/CommandException.Overwrite.md +++ b/docs/_overwrites/Commands/CommandException.Overwrite.md @@ -1,9 +1,8 @@ --- uid: Discord.Commands.CommandException +remarks: *content --- -### Remarks - This @System.Exception class is typically used when diagnosing an error thrown during the execution of a command. You will find the thrown exception passed into @@ -11,6 +10,11 @@ thrown exception passed into sent to your [CommandService.Log](xref:Discord.Commands.CommandService.Log) event handler. +--- +uid: Discord.Commands.CommandException +example: [*content] +--- + You may use this information to handle runtime exceptions after execution. Below is an example of how you may use this: diff --git a/docs/_overwrites/Commands/DontAutoLoadAttribute.Overwrite.md b/docs/_overwrites/Commands/DontAutoLoadAttribute.Overwrite.md index 857e05cf8..d47980df7 100644 --- a/docs/_overwrites/Commands/DontAutoLoadAttribute.Overwrite.md +++ b/docs/_overwrites/Commands/DontAutoLoadAttribute.Overwrite.md @@ -1,15 +1,17 @@ --- uid: Discord.Commands.DontAutoLoadAttribute +remarks: *content --- -### Remarks - The attribute can be applied to a public class that inherits @Discord.Commands.ModuleBase. By applying this attribute, @Discord.Commands.CommandService.AddModulesAsync* will not discover and add the marked module to the CommandService. -### Example +--- +uid: Discord.Commands.DontAutoLoadAttribute +example: [*content] +--- ```cs [DontAutoLoad] diff --git a/docs/_overwrites/Commands/DontInjectAttribute.Overwrite.md b/docs/_overwrites/Commands/DontInjectAttribute.Overwrite.md index ed59c6ced..2d9dd6e9a 100644 --- a/docs/_overwrites/Commands/DontInjectAttribute.Overwrite.md +++ b/docs/_overwrites/Commands/DontInjectAttribute.Overwrite.md @@ -1,16 +1,18 @@ --- uid: Discord.Commands.DontInjectAttribute +remarks: *content --- -### Remarks - The attribute can be applied to a public settable property inside a -@Discord.Commands.ModuleBase based class. By applying this property, +@Discord.Commands.ModuleBase based class. By applying this attribute, the marked property will not be automatically injected of the dependency. See [Dependency Injection](../../guides/commands/commands.md#dependency-injection) to learn more. -### Example +--- +uid: Discord.Commands.DontInjectAttribute +example: [*content] +--- ```cs public class MyModule : ModuleBase diff --git a/docs/_overwrites/Commands/ShardedCommandContext.Overwrite.md b/docs/_overwrites/Commands/ShardedCommandContext.Overwrite.md index f3c5bacbc..0a97dc47b 100644 --- a/docs/_overwrites/Commands/ShardedCommandContext.Overwrite.md +++ b/docs/_overwrites/Commands/ShardedCommandContext.Overwrite.md @@ -1,8 +1,8 @@ --- uid: Discord.Commands.ShardedCommandContext +example: [*content] --- -### Example An example of how this class is used the command system can be seen below: diff --git a/docs/_overwrites/Commands/SocketCommandContext.Overwrite.md b/docs/_overwrites/Commands/SocketCommandContext.Overwrite.md index 233418201..192ad1682 100644 --- a/docs/_overwrites/Commands/SocketCommandContext.Overwrite.md +++ b/docs/_overwrites/Commands/SocketCommandContext.Overwrite.md @@ -1,5 +1,6 @@ --- uid: Discord.Commands.SocketCommandContext +example: [*content] --- An example of how this class is used the command system can be seen diff --git a/docs/_overwrites/Common/Discord.EmbedBuilder.Overwrites.md b/docs/_overwrites/Common/Discord.EmbedBuilder.Overwrites.md index 566e623a7..2a0de73d5 100644 --- a/docs/_overwrites/Common/Discord.EmbedBuilder.Overwrites.md +++ b/docs/_overwrites/Common/Discord.EmbedBuilder.Overwrites.md @@ -1,14 +1,16 @@ --- uid: Discord.EmbedBuilder +remarks: *content --- -### Remarks - This builder class is used to build an @Discord.Embed (rich embed) -object that will be ready to be sent via @Discord.IMessageChannel.SendMessageAsync* +object that will be ready to be sent via @Discord.IMessageChannel.SendMessageAsync* after @Discord.EmbedBuilder.Build* is called. -### Example +--- +uid: Discord.EmbedBuilder +example: [*content] +--- The example below builds an embed and sends it to the chat.