Skip to content

Commit 4fe78b2

Browse files
committed
chore: remove interaction type limitation
1 parent 303ad80 commit 4fe78b2

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "discord.js-pages",
3-
"version": "1.3.4",
3+
"version": "1.3.5",
44
"description": "Dynamic pages pagination module for discord.js",
55
"scripts": {
66
"build": "tsc && babel build --out-dir lib --copy-files",

src/PagesBuilder.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,6 @@ export class PagesBuilder extends MessageEmbed {
8080
constructor(interaction: CommandInteraction) {
8181
super();
8282

83-
if (!interaction.isCommand()) {
84-
throw new TypeError(`${this.constructor.name} can only be initialized when calling the slash command`);
85-
}
86-
8783
this.interaction = interaction;
8884

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

0 commit comments

Comments
 (0)