jowsey / discord.js-menu

💬 Create Discord.js embed-menus, with customizable reactions and unlimited pages.
https://npm.im/discord.js-menu
MIT License
120 stars 19 forks source link

Why Doesn't the Help Menu start? #12

Open Dragonizedpizza opened 3 years ago

Dragonizedpizza commented 3 years ago
   let helpMenu = new Menu(message.channel, message.author.id, [
            {
                name: 'main',
                content: main,
                reactions: {
                    '⚙': 'config',
                    '🔍': 'information',
                    '🎮': 'fun',
                    [`${emojis.giveaways}`]: 'giveaways',
                    '📷': 'image',
                }
            },
            {
                name: 'config',
                content: config,
                reactions: {
                    '🔍': 'information',
                    '🎮': 'fun',
                    [`${emojis.giveaways}`]: 'giveaways',
                    '📷': 'image',

                }
            },
            {
                name: 'information',
                content: information,
                reactions: {
                    '⚙': 'config',
                    '🎮': 'fun',
                    [`${emojis.giveaways}`]: 'giveaways',
                    '📷': 'image',

                }
            },
            {
                name: 'fun',
                content: fun,
                reactions: {
                    '⚙': 'config',
                    '🔍': 'information',
                    [`${emojis.giveaways}`]: 'giveaways',
                    '📷': 'image',
                }
            },
            {
                name: 'giveaways',
                content: giveaways,
                reactions: {
                    '⚙': 'config',
                    '🔍': 'information',
                    '🎮': 'fun',
                    '📷': 'image',
                }
            },
            {
                name: 'image',
                content: image,
                reactions: {
                    '⚙': 'config',
                    '🔍': 'information',
                    '🎮': 'fun',
                    [`${emojis.giveaways}`]: 'giveaways',
                }
            },
        ], 30000)
        helpMenu.start()
  }
}
Dragonizedpizza commented 3 years ago

emojis.giveaways is defined as btw. There's no error, once I react on the giveaway emoji it removes my reaction and stays on the same page.