bugfix
This commit is contained in:
parent
242c649078
commit
86fee37e62
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user