Browse Source

Typo in the Nsfw Precondition Attribute

pull/661/head
RealBlazeIt GitHub 8 years ago
parent
commit
0b493267b8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.Commands/Attributes/Preconditions/RequireNsfwAttribute.cs

+ 1
- 1
src/Discord.Net.Commands/Attributes/Preconditions/RequireNsfwAttribute.cs View File

@@ -14,7 +14,7 @@ namespace Discord.Commands
if (context.Channel.IsNsfw) if (context.Channel.IsNsfw)
return Task.FromResult(PreconditionResult.FromSuccess()); return Task.FromResult(PreconditionResult.FromSuccess());
else else
return Task.FromResult(PreconditionResult.FromError("This command may only be invoked in an NSFW channel."));
return Task.FromResult(PreconditionResult.FromError("This command may only be invoked in a NSFW channel."));
} }
} }
} }

Loading…
Cancel
Save