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

Usage Feedback #2

Closed MirayXS closed 3 years ago

MirayXS commented 4 years ago

Usage Feedback

Nice embed menus! really useful if you don't want to make spammy embeds.

Some things i noticed while coding

1. DiscordAPIError: Cannot execute action on a DM channel

Fixed by doing the following

if (message.channel.type === 'dm') return message.channel.send("DiscordAPIError: Cannot execute action on a DM channel")

Looks like that if i stop the menus through the stop button i get this error. ..i don't remember correctly because i was testing yesterday.

2. DiscordAPIError: Missing Permissions

Seems like embeds don't work properly if the bot doesn't have the MANAGE_MESSAGES permission on. ..Seems like these permissions are required:

READ_MESSAGES
SEND_MESSAGES
EMBED_LINKS
ADD_REACTIONS
jowsey commented 3 years ago

I've addressed this in v2.0.0 (https://github.com/jowsey/discord.js-menu/commit/e53e40c1746ab125e4e01c0242b0d75d6481bfa6). Apologies for the wait, have had a lot of things to deal with, but finally got a moment to figure this out.