This commit is contained in:
Erik 2022-02-11 17:55:50 +02:00
parent 242c649078
commit 86fee37e62
No known key found for this signature in database
GPG Key ID: FEFF4B220DDF5589

View File

@ -191,7 +191,7 @@ class InteractionWrapper {
* @param options interaction.options.data * @param options interaction.options.data
*/ */
_options(options) { _options(options) {
if (!options) return []; if (!options?.length) return [];
if (['SUB_COMMAND_GROUP', 'SUB_COMMAND'].includes(options[0].type)) return this._options(options[0].options); if (['SUB_COMMAND_GROUP', 'SUB_COMMAND'].includes(options[0].type)) return this._options(options[0].options);
return options; return options;
} }