Browse Source

Replace [DontInject] with DontInjectAttribute with cross reference

pull/826/head
Hsu Still 8 years ago
parent
commit
a828111fd3
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      docs/guides/commands/commands.md

+ 3
- 1
docs/guides/commands/commands.md View File

@@ -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


Loading…
Cancel
Save