From a828111fd37a8f845e44142df8073155e38c3a22 Mon Sep 17 00:00:00 2001 From: Hsu Still <341464@gmail.com> Date: Sat, 30 Sep 2017 12:13:21 +0800 Subject: [PATCH] Replace [DontInject] with DontInjectAttribute with cross reference --- docs/guides/commands/commands.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/guides/commands/commands.md b/docs/guides/commands/commands.md index 86aec8017..6781764c9 100644 --- a/docs/guides/commands/commands.md +++ b/docs/guides/commands/commands.md @@ -224,7 +224,7 @@ Any publicly settable properties will also be filled in the same manner. >[!NOTE] -> Annotating a property with a `[DontInject]` attribute will prevent the +> Annotating a property with a [DontInjectAttribute] attribute will prevent the property from being injected. >[!NOTE] @@ -235,6 +235,8 @@ the `ServiceProvider` that is passed into it respectively. [!code-csharp[ServiceProvider in Modules](samples/dependency_module.cs)] +[DontInjectAttribute]: xref:Discord.Commands.DontInjectAttribute + # Preconditions Precondition serve as a permissions system for your Commands. Keep in