mirror of
https://github.com/danbulant/discord.js
synced 2026-07-05 19:20:42 +00:00
Fix options
This commit is contained in:
parent
c513df444e
commit
2eaafaf1d3
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue