Skip to content

Commit

Permalink
fix: pass ephemeral while replying. fixes: #45
Browse files Browse the repository at this point in the history
  • Loading branch information
imranbarbhuiya committed Jul 19, 2022
1 parent 85c48c9 commit 2f09892
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/pagination/Pagination.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ export class Pagination extends PaginationEmbed {
*/
public async reply(): Promise<InteractionResponse<true> | Message> {
const payloads = this.ready();
const message = await (this.interaction as unknown as CommandInteraction<'cached'>).reply(payloads);
const message = await (this.interaction as unknown as CommandInteraction<'cached'>).reply({ ...payloads, ephemeral: this.ephemeral });
this.paginate(message);
return message;
}
Expand Down

0 comments on commit 2f09892

Please sign in to comment.