Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(preconditions): fixed TextOnly and NewsOnly #222

Merged
merged 4 commits into from
Jul 8, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix typo
  • Loading branch information
sawa-ko authored Jul 8, 2021
commit b49cec0192ac968a83e1ba17c449d99bcac1e9c9
4 changes: 2 additions & 2 deletions src/preconditions/NewsOnly.ts
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ import { Precondition, PreconditionResult } from '../lib/structures/Precondition
export class CorePrecondition extends Precondition {
public run(message: Message): PreconditionResult {
return message.channel.type === 'news'
? this.ok();
: this.error({ identifier: Identifiers.PreconditionNewsOnly, message: 'You can only run this command in news channels.' })
? this.ok()
: this.error({ identifier: Identifiers.PreconditionNewsOnly, message: 'You can only run this command in news channels.' });
}
}