This commit is contained in:
Erik 2022-01-12 23:42:18 +02:00
parent 5a2cf70479
commit 6dc12e77c1
No known key found for this signature in database
GPG Key ID: FEFF4B220DDF5589

View File

@ -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;