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,