From 6dc12e77c1307c54a7daa9b72d88e55da6a8ebca Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Wed, 12 Jan 2022 23:42:18 +0200 Subject: [PATCH] comment --- src/structure/interfaces/Setting.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/structure/interfaces/Setting.js b/src/structure/interfaces/Setting.js index e442d64..3a195ac 100644 --- a/src/structure/interfaces/Setting.js +++ b/src/structure/interfaces/Setting.js @@ -66,6 +66,7 @@ class Setting extends Component { */ async collector(wrapper, selectMenu) { + // onCollect must return a function that takes an interaction and implemented in the setting class if (!this.onCollect) throw new Error(`Setting ${this.name} is missing onCollect()`); const { channel, message, guild } = wrapper;