From 86fee37e62760219289a1d6ef620ea1bacd020c9 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Fri, 11 Feb 2022 17:55:50 +0200 Subject: [PATCH] bugfix --- src/structure/client/wrappers/InteractionWrapper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structure/client/wrappers/InteractionWrapper.js b/src/structure/client/wrappers/InteractionWrapper.js index 163ccc2..0710852 100644 --- a/src/structure/client/wrappers/InteractionWrapper.js +++ b/src/structure/client/wrappers/InteractionWrapper.js @@ -191,7 +191,7 @@ class InteractionWrapper { * @param options interaction.options.data */ _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); return options; }