mikeyaworski / Utility-Discord-Bot

A Discord utility bot
7 stars 33 forks source link

Improve support for threads #27

Open mikeyaworski opened 3 years ago

mikeyaworski commented 3 years ago

Moving messages and deleting messages within threads don't work. Since the bot is not part of the thread, it seems that it can't find the messages. Perhaps an update to Discord.js is required. Should investigate this.

mikeyaworski commented 3 years ago

36 Mostly addresses this, but trying to move messages from a channel with message IDs that exist in a thread won't be able to find the messages. If you type directly in the thread, you can move the messages. This works because the message searching defaults to the current channel, so it's already found when you use the command. But when you type in a separate channel, it doesn't look through the threads to find messages.

Geolivi commented 2 years ago

I've followed the directions above but I still cannot get the bot to work with threads. It works perfectly in channels. It doesn't have a problem finding the message, it seems to have problems identifying who's commanding it to move a message. Both the bot and I have Administrator permissions. image

mikeyaworski commented 2 years ago

Thanks for reporting this. This was a bug that got introduced when I recently upgraded the bot to use discord.js v14. I just fixed it here 38c1764c97830b66820839532a2926e976894ac4.