Skip to content

Commit

Permalink
chore: remove interaction type limitation
Browse files Browse the repository at this point in the history
  • Loading branch information
egorprnn committed Sep 28, 2021
1 parent 303ad80 commit 4fe78b2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "discord.js-pages",
"version": "1.3.4",
"version": "1.3.5",
"description": "Dynamic pages pagination module for discord.js",
"scripts": {
"build": "tsc && babel build --out-dir lib --copy-files",
Expand Down
4 changes: 0 additions & 4 deletions src/PagesBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,6 @@ export class PagesBuilder extends MessageEmbed {
constructor(interaction: CommandInteraction) {
super();

if (!interaction.isCommand()) {
throw new TypeError(`${this.constructor.name} can only be initialized when calling the slash command`);
}

this.interaction = interaction;

this.listenUsers = [(interaction.member as GuildMember).user.id];
Expand Down

0 comments on commit 4fe78b2

Please sign in to comment.