Browse Source

Feedback

Whoops. 👌

Co-Authored-By: Joe4evr <jii.geugten@gmail.com>
pull/1230/head
Chris Johnston GitHub 6 years ago
parent
commit
ea96f9a4cf
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      docs/guides/commands/samples/preconditions/require_role.cs

+ 1
- 1
docs/guides/commands/samples/preconditions/require_role.cs View File

@@ -24,7 +24,7 @@ public class RequireRoleAttribute : PreconditionAttribute
return Task.FromResult(PreconditionResult.FromSuccess()); return Task.FromResult(PreconditionResult.FromSuccess());
// Since it wasn't, fail // Since it wasn't, fail
else else
return Task.FromResult(PreconditionResult.FromError($"You must a role named {_name} to run this command."));
return Task.FromResult(PreconditionResult.FromError($"You must have a role named {_name} to run this command."));
} }
else else
return Task.FromResult(PreconditionResult.FromError("You must be in a guild to run this command.")); return Task.FromResult(PreconditionResult.FromError("You must be in a guild to run this command."));


Loading…
Cancel
Save