Fix options

This commit is contained in:
Daniel Bulant 2020-12-16 18:00:47 +01:00 committed by GitHub
parent c513df444e
commit 2eaafaf1d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,7 +56,7 @@ class ApplicationCommand extends Base {
* @type {Object[]} * @type {Object[]}
* @readonly * @readonly
*/ */
this.options = data.options.map(function m(o) { this.options = data.options?.map(function m(o) {
return { return {
type: ApplicationCommandOptionType[o.type], type: ApplicationCommandOptionType[o.type],
name: o.name, name: o.name,