docs: Replace obsolete Precondition sample with something new (#1230)

* Replace obsolete Precondition sample with something new

* Feedback

Whoops. 👌

Co-Authored-By: Joe4evr <jii.geugten@gmail.com>
This commit is contained in:
Joe4evr
2019-01-04 17:56:57 +01:00
committed by Christopher F
parent 65b8c09727
commit feed4fd752
3 changed files with 33 additions and 29 deletions

View File

@@ -76,7 +76,7 @@ necessary.
### Example - Creating a Custom Precondition
[!code-csharp[Custom Precondition](samples/preconditions/require_owner.cs)]
[!code-csharp[Custom Precondition](samples/preconditions/require_role.cs)]
[CheckPermissionsAsync]: xref:Discord.Commands.PreconditionAttribute.CheckPermissionsAsync*
[PreconditionResult.FromSuccess]: xref:Discord.Commands.PreconditionResult.FromSuccess*