Skip to content
This repository has been archived by the owner on Apr 8, 2023. It is now read-only.

Commit

Permalink
fix(ButtonCheckBool): Add buttons manually
Browse files Browse the repository at this point in the history
  • Loading branch information
despenser08 committed Dec 10, 2021
1 parent a715481 commit facf2e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/structures/ButtonCheckBool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class ButtonCheckBool extends EventEmitter {
}

public get components() {
return [new MessageActionRow().addComponents(...this.buttons), ...this.actionRows];
return [new MessageActionRow().addComponents(this.buttons.TRUE, this.buttons.FALSE), ...this.actionRows];
}

public setTimeout(timeout: number) {
Expand Down Expand Up @@ -145,7 +145,7 @@ export class ButtonCheckBool extends EventEmitter {

this.emit("start", this.message);

return await new Promise<boolean | null>((resolve) => {
return new Promise<boolean | null>((resolve) => {
this.buttonCollector?.on("end", (_, reason) => {
this.message?.edit({
components: [
Expand Down

0 comments on commit facf2e2

Please sign in to comment.