From 2eaafaf1d3cc9040089845c9f4e9110186228bdf Mon Sep 17 00:00:00 2001 From: Daniel Bulant Date: Wed, 16 Dec 2020 18:00:47 +0100 Subject: [PATCH] Fix options --- src/structures/ApplicationCommand.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/ApplicationCommand.js b/src/structures/ApplicationCommand.js index 560b95a8..fac41456 100644 --- a/src/structures/ApplicationCommand.js +++ b/src/structures/ApplicationCommand.js @@ -56,7 +56,7 @@ class ApplicationCommand extends Base { * @type {Object[]} * @readonly */ - this.options = data.options.map(function m(o) { + this.options = data.options?.map(function m(o) { return { type: ApplicationCommandOptionType[o.type], name: o.name,