Skip to content

Commit

Permalink
refactor: change generic in Precondition to use namespaced type
Browse files Browse the repository at this point in the history
favna committed Jan 12, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 9416b2c commit 1a4717b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/structures/Precondition.ts
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ import type { ChatInputCommand, ContextMenuCommand, MessageCommand } from './Com
export type PreconditionResult = Awaitable<Result<unknown, UserError>>;
export type AsyncPreconditionResult = Promise<Result<unknown, UserError>>;

export class Precondition<O extends PreconditionOptions = PreconditionOptions> extends Piece<O> {
export class Precondition<O extends Precondition.Options = Precondition.Options> extends Piece<O> {
public readonly position: number | null;

public constructor(context: Piece.Context, options: Precondition.Options = {}) {

0 comments on commit 1a4717b

Please sign in to comment.