@novelbrasil/discord.js-embed-menu
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -139,3 +139,3 @@ "use strict"; | ||
} | ||
yield this.menu.edit({ content, embeds: [this.currentPage.content], components }); | ||
this.menu = yield this.menu.edit({ content, embeds: [this.currentPage.content], components }); | ||
if (this.currentPage.buttons) { | ||
@@ -170,4 +170,4 @@ yield this.awaitButtons(); | ||
var _a; | ||
console.log(this.menu); | ||
if (this.menu && this.menu instanceof discord_js_1.Message) { | ||
console.log(this.menu); | ||
const filter = (_interaction) => { | ||
@@ -174,0 +174,0 @@ var _a, _b; |
{ | ||
"name": "@novelbrasil/discord.js-embed-menu", | ||
"description": "Easily create Discord.js embed menus with reactions and unlimited customisable pages.", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"author": "eilex", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
@@ -165,3 +165,3 @@ import { EventEmitter } from 'events'; | ||
await this.menu.edit({content, embeds: [this.currentPage.content], components }); | ||
this.menu = await this.menu.edit({content, embeds: [this.currentPage.content], components }); | ||
@@ -196,4 +196,4 @@ if (this.currentPage.buttons) { | ||
private async awaitButtons() { | ||
console.log(this.menu) | ||
if (this.menu && this.menu instanceof Message) { | ||
console.log(this.menu) | ||
const filter = (_interaction: any): boolean => { | ||
@@ -200,0 +200,0 @@ return _interaction.user.id === this.menu?.client.user?.id |
474838