We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 50fc8d6 + 71611bb commit 2ffb58dCopy full SHA for 2ffb58d
1 file changed
src/commands/public/misc/help.js
@@ -101,10 +101,16 @@ module.exports = {
101
102
collector.on("end", async () => {
103
client.activeEphemeralMessages.delete(userId);
104
- await interaction.editReply({
105
- embeds: [embeds[currentGroup][currentPage[currentGroup]]],
106
- components: [],
107
- });
+ try {
+ await interaction.editReply({
+ embeds: [embeds[currentGroup][currentPage[currentGroup]]],
+ components: [],
108
+ });
109
+ } catch (error) {
110
+ if (error.code !== 50027) {
111
+ logger.error("Error clearing help components on collector end:", error);
112
+ }
113
114
});
115
} catch (error) {
116
logger.error("Error processing help command:", error);
0 commit comments