|
@@ -224,7 +224,7 @@ Any publicly settable properties will also be filled in the same |
|
|
manner. |
|
|
manner. |
|
|
|
|
|
|
|
|
>[!NOTE] |
|
|
>[!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. |
|
|
property from being injected. |
|
|
|
|
|
|
|
|
>[!NOTE] |
|
|
>[!NOTE] |
|
@@ -235,6 +235,8 @@ the `ServiceProvider` that is passed into it respectively. |
|
|
|
|
|
|
|
|
[!code-csharp[ServiceProvider in Modules](samples/dependency_module.cs)] |
|
|
[!code-csharp[ServiceProvider in Modules](samples/dependency_module.cs)] |
|
|
|
|
|
|
|
|
|
|
|
[DontInjectAttribute]: xref:Discord.Commands.DontInjectAttribute |
|
|
|
|
|
|
|
|
# Preconditions |
|
|
# Preconditions |
|
|
|
|
|
|
|
|
Precondition serve as a permissions system for your Commands. Keep in |
|
|
Precondition serve as a permissions system for your Commands. Keep in |
|
|