Skip to content

Commit

Permalink
fix: interaction.channel undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
forgetfulskybro committed Dec 31, 2023
1 parent c314ee1 commit 6cd96f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/pagination.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default class Paginator {
}

async start(interaction: any, type: string | null) {
if (!this.pages.length) return;
if (!interaction || !interaction.channel || !this.pages.length) return;

let pFirst = new ButtonBuilder()
.setDisabled(true)
Expand Down

0 comments on commit 6cd96f1

Please sign in to comment.